Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
kodjodevf committed Jul 17, 2024
1 parent dbc7ded commit 2a2ba90
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 12 deletions.
59 changes: 57 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
18 changes: 9 additions & 9 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2a2ba90

Please sign in to comment.