From 2a2ba90170296b2699d15ea1910db90bad3b9ad5 Mon Sep 17 00:00:00 2001 From: kodjomoustapha <107993382+kodjodevf@users.noreply.github.com> Date: Wed, 17 Jul 2024 16:51:22 +0100 Subject: [PATCH] + --- .github/workflows/release.yml | 59 +++++++++++++++++++++++++++++++++-- pubspec.lock | 18 +++++------ pubspec.yaml | 3 +- 3 files changed, 68 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cde98b61..00cd2b25 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -254,7 +254,7 @@ jobs: allowUpdates: true - build-and-release-linux-appimage: + build-and-release-linux-appimage_libmpv_so: permissions: contents: write runs-on: ubuntu-latest @@ -300,7 +300,7 @@ jobs: mv build/linux/x64/release/bundle/{mangayomi,AppRun} cp linux/appimage/* build/linux/x64/release/bundle/ ./appimagetool build/linux/x64/release/bundle/ - mv *.AppImage build/Mangayomi-${{ github.ref_name }}-linux.AppImage + mv *.AppImage build/Mangayomi-${{ github.ref_name }}-linux_libmpv_so.AppImage - name: upload artifact linux appimage uses: actions/upload-artifact@v3 @@ -311,3 +311,58 @@ jobs: with: artifacts: build/Mangayomi-*.AppImage allowUpdates: true + + build-and-release-linux-appimage_libmpv_so_1: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + + - name: checkout branch + uses: actions/checkout@v3 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install webkit2gtk-4.1 clang cmake ninja-build pkg-config libgtk-3-dev mpv libmpv-dev dpkg-dev + + - name: setup flutter + uses: subosito/flutter-action@v2.12.0 + with: + channel: 'stable' + + - name: Setup Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Install the CLI tool + run: cargo install 'flutter_rust_bridge_codegen@^2.0.0-dev.0' + + + - name: flutter pub get + run: flutter pub get + + - name: build linux + run: | + + sudo apt install -y libfuse2 + + curl -JOL https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage + chmod a+x appimagetool-x86_64.AppImage + mv appimagetool-x86_64.AppImage appimagetool + + flutter build linux --release + + mv build/linux/x64/release/bundle/{mangayomi,AppRun} + cp linux/appimage/* build/linux/x64/release/bundle/ + ./appimagetool build/linux/x64/release/bundle/ + mv *.AppImage build/Mangayomi-${{ github.ref_name }}-linux_libmpv_so_1.AppImage + + - name: upload artifact linux appimage + uses: actions/upload-artifact@v3 + with: + path: build/Mangayomi-*.AppImage + - name: Rrelease packages appimage + uses: ncipollo/release-action@v1 + with: + artifacts: build/Mangayomi-*.AppImage + allowUpdates: true \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index 21a79813..a186e14c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1023,18 +1023,18 @@ packages: dependency: "direct main" description: name: package_info_plus - sha256: b93d8b4d624b4ea19b0a5a208b2d6eff06004bc3ce74c06040b120eeadd00ce0 + sha256: "88bc797f44a94814f2213db1c9bd5badebafdfb8290ca9f78d4b9ee2a3db4d79" url: "https://pub.dev" source: hosted - version: "8.0.0" + version: "5.0.1" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface - sha256: f49918f3433a3146047372f9d4f1f847511f2acd5cd030e1f44fe5a50036b70e + sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "2.0.1" path: dependency: transitive description: @@ -1635,10 +1635,10 @@ packages: dependency: transitive description: name: wakelock_plus - sha256: "14758533319a462ffb5aa3b7ddb198e59b29ac3b02da14173a1715d65d4e6e68" + sha256: "104d94837bb28c735894dcd592877e990149c380e6358b00c04398ca1426eed4" url: "https://pub.dev" source: hosted - version: "1.2.5" + version: "1.2.1" wakelock_plus_platform_interface: dependency: transitive description: @@ -1656,13 +1656,13 @@ packages: source: hosted version: "1.1.0" web: - dependency: transitive + dependency: "direct overridden" description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: d43c1d6b787bf0afad444700ae7f4db8827f701bc61c255ac8d328c6f4d52062 url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "1.0.0" web_socket: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index ec442d8d..ea3cda92 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -24,7 +24,7 @@ dependencies: intl: ^0.19.0 google_fonts: ^6.2.1 url_launcher: ^6.3.0 - package_info_plus: ^8.0.0 + package_info_plus: ^5.0.1 permission_handler: ^11.3.1 flutter_inappwebview: ^5.8.0 draggable_menu: ^4.4.1 @@ -98,6 +98,7 @@ dependency_overrides: url: https://github.com/kodjodevf/media-kit.git path: media_kit_video ref: 398abfa23f9da201cd0af7b23a950f6a14c06ae3 + web: ^1.0.0 dev_dependencies: flutter_test: