基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
add linux workflow
Predidit678f6ce3abe2
diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yamlindex 26a3f9c5..14d43894 100644--- a/.github/workflows/pr.yaml+++ b/.github/workflows/pr.yaml@@ -104,3 +104,36 @@with:name: ios_outputspath: Kazumi_ios_*.ipa++ flutter-build-linux:+ name: "Release for Linux"+ runs-on: "ubuntu-latest"+ permissions: write-all+ steps:+ - name: Clone repository+ uses: actions/checkout@v4+ - name: Install dependencies+ run: |+ sudo apt-get update+ sudo apt-get install -y clang cmake libgtk-3-dev ninja-build libayatana-appindicator3-dev unzip webkit2gtk-4.1 libasound2-dev+ shell: bash+ - name: Set up Flutter+ uses: subosito/flutter-action@v2+ with:+ channel: stable+ flutter-version-file: pubspec.yaml+ - name: Get Flutter dependencies+ run: flutter pub get+ shell: bash+ - name: Build Flutter for Linux+ run: flutter build linux+ shell: bash+ - name: Package linux build output+ run: tar -zcvf Kazumi_linux_canary.tar.gz -C build/linux/x64/release/bundle .+ shell: bash++ - name: Upload linux outputs+ uses: actions/upload-artifact@v4+ with:+ name: linux_outputs+ path: Kazumi_linux_*.tar.gzdiff --git a/.github/workflows/release.yaml b/.github/workflows/release.yamlindex a5207fc1..83ea4491 100644--- a/.github/workflows/release.yaml+++ b/.github/workflows/release.yaml@@ -94,6 +94,45 @@path: |Kazumi_windows_*.zip+ flutter-build-linux:+ name: "Release for Linux"+ runs-on: "ubuntu-latest"+ permissions: write-all+ steps:+ - name: Clone repository+ uses: actions/checkout@v4+ - name: Extract tag name+ run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV+ shell: bash+ - name: Echo build progress+ run: echo "Kazumi_linux_${{ env.tag }}.tar.gz build progress"+ shell: bash+ - name: Install dependencies+ run: |+ sudo apt-get update+ sudo apt-get install -y clang cmake libgtk-3-dev ninja-build libayatana-appindicator3-dev unzip webkit2gtk-4.1 libasound2-dev+ shell: bash+ - name: Set up Flutter+ uses: subosito/flutter-action@v2+ with:+ channel: stable+ flutter-version-file: pubspec.yaml+ - name: Get Flutter dependencies+ run: flutter pub get+ shell: bash+ - name: Build Flutter for Linux+ run: flutter build linux+ shell: bash+ - name: Package linux build output+ run: tar -zcvf Kazumi_linux_${{ env.tag }}.tar.gz -C build/linux/x64/release/bundle .+ shell: bash++ - name: Upload linux outputs+ uses: actions/upload-artifact@v4+ with:+ name: linux_outputs+ path: Kazumi_linux_*.tar.gz+flutter-build-ios:name: "Release for iOS"runs-on: "macos-latest"@@ -129,7 +168,7 @@release:name: "Release"runs-on: "ubuntu-latest"- needs: [flutter-build-windows, flutter-build-android, flutter-build-ios]+ needs: [flutter-build-windows, flutter-build-android, flutter-build-ios, flutter-build-linux]permissions: write-allsteps:- name: Clone repository@@ -179,7 +218,17 @@- name: List files in ios_outputs directoryrun: ls -l ios_outputs- name: Copy ios build file to root- run: cp ios_outputs/* Kazumi_ios_${{ env.tag }}_no_sign.ipa+ run: cp ios_outputs/* Kazumi_ios_${{ env.tag }}_no_sign.ipa++ - name: Download linux build file+ uses: actions/download-artifact@v4+ with:+ name: linux_outputs+ path: linux_outputs+ - name: List files in linux_outputs directory+ run: ls -l linux_outputs+ - name: Copy linux build file to root+ run: cp linux_outputs/* Kazumi_linux_${{ env.tag }}.tar.gz- name: Sign APKid: sign_app@@ -204,3 +253,4 @@build/signed/*.apkKazumi_windows_*.zipKazumi_ios_*.ipa+ Kazumi_linux_*.tar.gzdiff --git a/lib/pages/webview_linux/webview_linux_item.dart b/lib/pages/webview_linux/webview_linux_item.dartindex ed8fdcee..8f24dc32 100644--- a/lib/pages/webview_linux/webview_linux_item.dart+++ b/lib/pages/webview_linux/webview_linux_item.dart@@ -6,11 +6,12 @@ class WebviewLinuxItem extends StatefulWidget {const WebviewLinuxItem({super.key});@override- State<WebviewLinuxItem> createState() => _WebviewItemState();+ State<WebviewLinuxItem> createState() => _WebviewLinuxItemState();}-class _WebviewItemState extends State<WebviewLinuxItem> {- final WebviewLinuxItemController webviewLinuxItemController = Modular.get<WebviewLinuxItemController>();+class _WebviewLinuxItemState extends State<WebviewLinuxItem> {+ final WebviewLinuxItemController webviewLinuxItemController =+ Modular.get<WebviewLinuxItemController>();@overridevoid initState() {@@ -26,6 +27,10 @@ class _WebviewItemState extends State<WebviewLinuxItem> {@overrideWidget build(BuildContext context) {- return const Expanded(child: Center(child: Text('此平台不支持Webview规则')));+ return Container(+ height: MediaQuery.of(context).size.width * 9.0 / (16.0),+ width: MediaQuery.of(context).size.width,+ color: Colors.black,+ child: const Center(child: Text('此平台不支持Webview规则')));}}