Skip to content

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

correct dandanplay api in pr workflow

Predidit5c26f3f8971e
diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml
index a5eb147f..b3dc923a 100644
--- a/.github/workflows/pr.yaml
+++ b/.github/workflows/pr.yaml
@@ -114,10 +114,6 @@
- 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
@@ -159,13 +155,6 @@
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
- run: Compress-Archive build/windows/x64/runner/Release/* Kazumi_windows_canary.zip
- name: Upload windows outputs
@@ -224,10 +213,6 @@
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
@@ -258,10 +243,6 @@
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: |
@@ -310,11 +291,6 @@
- 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
- shell: bash
- name: Build Flutter for Linux
run: flutter build linux
shell: bash