mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-05-17 14:07:30 +08:00
Update
This commit is contained in:
48
.github/workflows/build-apk.yml
vendored
Normal file
48
.github/workflows/build-apk.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
name: Build Android TV APK
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
direct_build:
|
||||||
|
name: Build Android TV APK
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: "yarn"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Get version from package.json
|
||||||
|
id: package-version
|
||||||
|
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Setup JDK
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: "zulu"
|
||||||
|
java-version: "17"
|
||||||
|
|
||||||
|
- name: Prebuild TV App
|
||||||
|
run: yarn prebuild-tv
|
||||||
|
|
||||||
|
- name: Build TV APK
|
||||||
|
run: yarn build-local
|
||||||
|
|
||||||
|
- name: Rename APK file
|
||||||
|
run: |
|
||||||
|
mkdir -p artifacts
|
||||||
|
cp android/app/build/outputs/apk/release/app-release.apk artifacts/orionTV.${{ steps.package-version.outputs.version }}.apk
|
||||||
|
|
||||||
|
- name: Upload TV APK
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: orionTV-apk
|
||||||
|
path: artifacts/orionTV.${{ steps.package-version.outputs.version }}.apk
|
||||||
18
README.md
18
README.md
@@ -124,3 +124,21 @@ yarn android-tv
|
|||||||
- `yarn android-tv`: 在 Android TV 上构建并运行应用。
|
- `yarn android-tv`: 在 Android TV 上构建并运行应用。
|
||||||
- `yarn prebuild-tv`: 为 TV 构建生成原生项目文件。
|
- `yarn prebuild-tv`: 为 TV 构建生成原生项目文件。
|
||||||
- `yarn lint`: 检查代码风格。
|
- `yarn lint`: 检查代码风格。
|
||||||
|
|
||||||
|
## 📸 应用截图
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## 📝 License
|
||||||
|
|
||||||
|
本项目采用 MIT 许可证。
|
||||||
|
|
||||||
|
## 🙏 致谢
|
||||||
|
|
||||||
|
本项目受到以下开源项目的启发:
|
||||||
|
|
||||||
|
- [MoonTV](https://github.com/senshinya/MoonTV) - 一个基于 Next.js 的视频聚合应用
|
||||||
|
- [LibreTV](https://github.com/LibreSpark/LibreTV) - 一个开源的视频流媒体应用
|
||||||
|
|||||||
BIN
screenshot/image.png
Normal file
BIN
screenshot/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 731 KiB |
BIN
screenshot/image1.png
Normal file
BIN
screenshot/image1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 209 KiB |
BIN
screenshot/image2.png
Normal file
BIN
screenshot/image2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 520 KiB |
BIN
screenshot/image3.png
Normal file
BIN
screenshot/image3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 220 KiB |
Reference in New Issue
Block a user