-
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
|
||||
allowUpdates: true
|
||||
|
||||
build-and-release-linux-appimage:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout branch
|
||||
uses: actions/checkout@v4
|
||||
# build-and-release-linux-appimage:
|
||||
# permissions:
|
||||
# contents: write
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: checkout branch
|
||||
# uses: actions/checkout@v4
|
||||
|
||||
- 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 libfuse2 locate
|
||||
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
||||
chmod +x appimagetool
|
||||
sudo mv appimagetool /usr/local/bin/
|
||||
# - 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 libfuse2 locate
|
||||
# wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
||||
# chmod +x appimagetool
|
||||
# sudo mv appimagetool /usr/local/bin/
|
||||
|
||||
- name: setup flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: 'stable'
|
||||
# - name: setup flutter
|
||||
# uses: subosito/flutter-action@v2
|
||||
# with:
|
||||
# channel: 'stable'
|
||||
|
||||
- name: Setup Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
# - name: Setup Rust toolchain
|
||||
# uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Install the CLI tool
|
||||
run: cargo install 'flutter_rust_bridge_codegen'
|
||||
# - name: Install the CLI tool
|
||||
# run: cargo install 'flutter_rust_bridge_codegen'
|
||||
|
||||
- name: flutter pub get
|
||||
run: flutter pub get
|
||||
# - name: flutter pub get
|
||||
# run: flutter pub get
|
||||
|
||||
- name: Enable dart_distributor
|
||||
run: dart pub global activate flutter_distributor
|
||||
# - name: Enable dart_distributor
|
||||
# run: dart pub global activate flutter_distributor
|
||||
|
||||
- name: Update PATH
|
||||
run: echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.bashrc
|
||||
# - name: Update PATH
|
||||
# run: echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.bashrc
|
||||
|
||||
- name: Build AppImage package
|
||||
run: flutter_distributor package --platform linux --targets appimage
|
||||
# - name: Build AppImage package
|
||||
# run: flutter_distributor package --platform linux --targets appimage
|
||||
|
||||
- name: Rebuild AppImage package
|
||||
run: flutter_distributor package --platform linux --targets appimage
|
||||
# - name: Rebuild AppImage package
|
||||
# run: flutter_distributor package --platform linux --targets appimage
|
||||
|
||||
- name: Move AppImage file
|
||||
run: mv $(find dist -type f -name "mangayomi*.AppImage") dist/Mangayomi-${{ github.ref_name }}-linux.AppImage
|
||||
# - name: Move AppImage file
|
||||
# run: mv $(find dist -type f -name "mangayomi*.AppImage") dist/Mangayomi-${{ github.ref_name }}-linux.AppImage
|
||||
|
||||
- name: upload artifact linux AppImage
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: dist/Mangayomi-*.AppImage
|
||||
# - name: upload artifact linux AppImage
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# path: dist/Mangayomi-*.AppImage
|
||||
|
||||
- name: Release package AppImage
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: dist/Mangayomi-*.AppImage
|
||||
allowUpdates: true
|
||||
# - name: Release package AppImage
|
||||
# uses: ncipollo/release-action@v1
|
||||
# with:
|
||||
# artifacts: dist/Mangayomi-*.AppImage
|
||||
# allowUpdates: true
|
||||
|
|
|
|||
Loading…
Reference in a new issue