Skip to content

Commit

Permalink
Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangtian616 committed Jan 18, 2024
1 parent 7efe5a4 commit 181c227
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- target: Linux
os: ubuntu-latest
artifact_name: release-Linux
artifact_path: build/linux/*.zip
artifact_path: build/linux/*.AppImage
- target: iOS
os: macos-latest
cache_pod_key: ios-pods
Expand Down Expand Up @@ -149,11 +149,14 @@ jobs:
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
flutter config --enable-linux-desktop
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
chmod +x appimagetool
sudo mv appimagetool /usr/local/bin/
flutter build linux --release -t lib/src/main.dart
mkdir ./build/linux/JHenTai_${{ steps.get_version.outputs.version }}
cp -a build/linux/x64/release/bundle/* ./build/linux/JHenTai_${{ steps.get_version.outputs.version }}
cd build/linux
zip -qroy JHenTai_${{ steps.get_version.outputs.version }}_Linux.zip JHenTai_${{ steps.get_version.outputs.version }}
appimagetool JHenTai_${{ steps.get_version.outputs.version }} JHenTai_${{ steps.get_version.outputs.version }}.AppImage
# Upload Artifacts
- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -182,6 +185,6 @@ jobs:
tag: ${{ github.ref_name }}
allowUpdates: true
bodyFile: changelog/${{ github.ref_name }}.md
artifacts: /tmp/artifacts/release-Android/*.apk,/tmp/artifacts/release-iOS/*.ipa,/tmp/artifacts/release-macOS/*.dmg,/tmp/artifacts/release-Windows/*.zip,/tmp/artifacts/release-Linux/*.zip
artifacts: /tmp/artifacts/release-Android/*.apk,/tmp/artifacts/release-iOS/*.ipa,/tmp/artifacts/release-macOS/*.dmg,/tmp/artifacts/release-Windows/*.zip,/tmp/artifacts/release-Linux/*.AppImage
artifactErrorsFailBuild: true
replacesArtifacts: true

0 comments on commit 181c227

Please sign in to comment.