Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

update release ci

Predidit274417f4982d
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 99998f92..711bd138 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -44,6 +44,10 @@
- name: Get Flutter dependencies
run: flutter pub get
shell: bash
+ - name: Inject DanDan API Credentials
+ run: |
+ sed -i "s/kvpx7qkqjh/${{ secrets.DANDANAPI_APPID }}/g" lib/utils/mortis.dart
+ sed -i "s/rABUaBLqdz7aCSi3fe88ZDj2gwga9Vax/${{ secrets.DANDANAPI_KEY }}/g" lib/utils/mortis.dart
- name: Build Flutter for Android
run: flutter build apk --split-per-abi
shell: bash
@@ -88,6 +92,13 @@
distribution: 'temurin'
java-version: '18'
- run: flutter pub get
+ - name: Inject DanDan API Credentials
+ env:
+ DANDANAPI_APPID: ${{ secrets.DANDANAPI_APPID }}
+ DANDANAPI_KEY: ${{ secrets.DANDANAPI_KEY }}
+ run: |
+ (Get-Content -Path 'lib/utils/mortis.dart') -replace "kvpx7qkqjh", "$env:DANDANAPI_APPID" | Set-Content -Path 'lib/utils/mortis.dart'
+ (Get-Content -Path 'lib/utils/mortis.dart') -replace "rABUaBLqdz7aCSi3fe88ZDj2gwga9Vax", "$env:DANDANAPI_KEY" | Set-Content -Path 'lib/utils/mortis.dart'
- run: flutter build windows
# - name: Download FFmpeg Assets
# uses: dsaltares/fetch-gh-release-asset@master
@@ -198,6 +209,10 @@
- name: Get Flutter dependencies
run: flutter pub get
shell: bash
+ - name: Inject DanDan API Credentials
+ run: |
+ sed -i "s/kvpx7qkqjh/${{ secrets.DANDANAPI_APPID }}/g" lib/utils/mortis.dart
+ sed -i "s/rABUaBLqdz7aCSi3fe88ZDj2gwga9Vax/${{ secrets.DANDANAPI_KEY }}/g" lib/utils/mortis.dart
- name: Build Flutter for Linux
run: flutter build linux
shell: bash
@@ -275,6 +290,10 @@
channel: stable
flutter-version-file: pubspec.yaml
- run: flutter pub get
+ - name: Inject DanDan API Credentials
+ run: |
+ sed -i '' "s/kvpx7qkqjh/${{ secrets.DANDANAPI_APPID }}/g" lib/utils/mortis.dart
+ sed -i '' "s/rABUaBLqdz7aCSi3fe88ZDj2gwga9Vax/${{ secrets.DANDANAPI_KEY }}/g" lib/utils/mortis.dart
- name: Build IPA
run: |
flutter build ios --release --no-codesign
@@ -307,6 +326,10 @@
channel: stable
flutter-version-file: pubspec.yaml
- run: flutter pub get
+ - name: Inject DanDan API Credentials
+ run: |
+ sed -i '' "s/kvpx7qkqjh/${{ secrets.DANDANAPI_APPID }}/g" lib/utils/mortis.dart
+ sed -i '' "s/rABUaBLqdz7aCSi3fe88ZDj2gwga9Vax/${{ secrets.DANDANAPI_KEY }}/g" lib/utils/mortis.dart
- run: flutter build macos --release
- name: Create DMG
run: |