-
This commit is contained in:
parent
d9e9e87926
commit
5bb19f41cd
1 changed files with 43 additions and 43 deletions
86
.github/workflows/release.yml
vendored
86
.github/workflows/release.yml
vendored
|
|
@ -303,58 +303,58 @@ jobs:
|
||||||
artifacts: dist/Mangayomi-*.deb
|
artifacts: dist/Mangayomi-*.deb
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
|
|
||||||
build-and-release-linux-appimage:
|
# build-and-release-linux-appimage:
|
||||||
permissions:
|
# permissions:
|
||||||
contents: write
|
# contents: write
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: checkout branch
|
# - name: checkout branch
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
run: |
|
# run: |
|
||||||
sudo apt-get update
|
# 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 libfuse2 locate
|
# sudo apt-get install webkit2gtk-4.1 clang cmake ninja-build pkg-config libgtk-3-dev mpv libmpv-dev dpkg-dev libfuse2 locate
|
||||||
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
# wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
||||||
chmod +x appimagetool
|
# chmod +x appimagetool
|
||||||
sudo mv appimagetool /usr/local/bin/
|
# sudo mv appimagetool /usr/local/bin/
|
||||||
|
|
||||||
- name: setup flutter
|
# - name: setup flutter
|
||||||
uses: subosito/flutter-action@v2
|
# uses: subosito/flutter-action@v2
|
||||||
with:
|
# with:
|
||||||
channel: 'stable'
|
# channel: 'stable'
|
||||||
|
|
||||||
- name: Setup Rust toolchain
|
# - name: Setup Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
# uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
- name: Install the CLI tool
|
# - name: Install the CLI tool
|
||||||
run: cargo install 'flutter_rust_bridge_codegen'
|
# run: cargo install 'flutter_rust_bridge_codegen'
|
||||||
|
|
||||||
- name: flutter pub get
|
# - name: flutter pub get
|
||||||
run: flutter pub get
|
# run: flutter pub get
|
||||||
|
|
||||||
- name: Enable dart_distributor
|
# - name: Enable dart_distributor
|
||||||
run: dart pub global activate flutter_distributor
|
# run: dart pub global activate flutter_distributor
|
||||||
|
|
||||||
- name: Update PATH
|
# - name: Update PATH
|
||||||
run: echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.bashrc
|
# run: echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.bashrc
|
||||||
|
|
||||||
- name: Build AppImage package
|
# - name: Build AppImage package
|
||||||
run: flutter_distributor package --platform linux --targets appimage
|
# run: flutter_distributor package --platform linux --targets appimage
|
||||||
|
|
||||||
- name: Rebuild AppImage package
|
# - name: Rebuild AppImage package
|
||||||
run: flutter_distributor package --platform linux --targets appimage
|
# run: flutter_distributor package --platform linux --targets appimage
|
||||||
|
|
||||||
- name: Move AppImage file
|
# - name: Move AppImage file
|
||||||
run: mv $(find dist -type f -name "mangayomi*.AppImage") dist/Mangayomi-${{ github.ref_name }}-linux.AppImage
|
# run: mv $(find dist -type f -name "mangayomi*.AppImage") dist/Mangayomi-${{ github.ref_name }}-linux.AppImage
|
||||||
|
|
||||||
- name: upload artifact linux AppImage
|
# - name: upload artifact linux AppImage
|
||||||
uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
with:
|
# with:
|
||||||
path: dist/Mangayomi-*.AppImage
|
# path: dist/Mangayomi-*.AppImage
|
||||||
|
|
||||||
- name: Release package AppImage
|
# - name: Release package AppImage
|
||||||
uses: ncipollo/release-action@v1
|
# uses: ncipollo/release-action@v1
|
||||||
with:
|
# with:
|
||||||
artifacts: dist/Mangayomi-*.AppImage
|
# artifacts: dist/Mangayomi-*.AppImage
|
||||||
allowUpdates: true
|
# allowUpdates: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue