Skip to content

Commit 11b0806

Browse files
committed
fix github action build linux
1 parent 749fd4d commit 11b0806

File tree

4 files changed

+211
-38
lines changed

4 files changed

+211
-38
lines changed

.github/workflows/release.yml

+13-16
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
- name: Install Flutter
1919
uses: subosito/flutter-action@v2
2020
with:
21-
channel: 'stable'
22-
flutter-version: '3.27.3'
21+
channel: "stable"
22+
flutter-version: "3.27.3"
2323
- uses: actions/setup-java@v4
2424
with:
25-
distribution: 'zulu'
26-
java-version: '17'
25+
distribution: "zulu"
26+
java-version: "17"
2727
- name: Fetch secrets
2828
run: |
2929
curl -u ${{ secrets.BASIC_AUTH }} -o android/app/app.key ${{ secrets.URL_PREFIX }}app.key
@@ -57,27 +57,24 @@ jobs:
5757
run: |
5858
sudo apt update
5959
# Basic
60-
sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev libvulkan-dev desktop-file-utils
60+
sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev libvulkan-dev desktop-file-utils wget
6161
# App Specific
6262
sudo apt install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev
6363
# Packaging
64-
sudo apt install -y rpm patchelf
64+
sudo wget https://github.com/AppImage/appimagetool/releases/download/1.9.0/appimagetool-x86_64.AppImage -o /bin/appimagetool
6565
- name: Build
6666
run: |
6767
dart run fl_build
68-
dart run flutter_distributor:main release --name linux --skip-clean
68+
dart run flutter_distributor:main package --platform=linux --target=appimage
6969
- name: Rename artifacts
7070
run: |
71-
deb_name=$(ls dist/*/*.deb)
72-
mv $deb_name ${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.deb
73-
rpm_name=$(ls dist/*/*.rpm)
74-
mv $rpm_name ${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.rpm
71+
appimage_name=$(ls dist/*/*.deb)
72+
mv $appimage_name ${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.appimage
7573
- name: Create Release
7674
uses: softprops/action-gh-release@v2
7775
with:
7876
files: |
79-
${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.deb
80-
${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.rpm
77+
${{ env.APP_NAME }}_${{ env.BUILD_NUMBER }}_amd64.appimage
8178
env:
8279
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8380

@@ -107,9 +104,9 @@ jobs:
107104
# uses: actions/checkout@v4
108105
# - name: Install Flutter
109106
# uses: subosito/flutter-action@v2
110-
# with:
111-
# channel: 'stable'
112-
# flutter-version: '3.22.2'
107+
# with:
108+
# channel: 'stable'
109+
# flutter-version: '3.22.2'
113110
# - name: Build
114111
# run: dart run fl_build -p ios,mac
115112
# - name: Create Release
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
display_name: ServerBox
2+
package_name: cn.lpkt.serverbox
3+
maintainer:
4+
name: lollipopkit
5+
6+
# co_authors:
7+
# - name:
8+
# email:
9+
priority: optional
10+
section: x11
11+
installed_size: 6604
12+
essential: false
13+
icon: assets/app_icon.png
14+
15+
# postinstall_scripts:
16+
# - echo "Installed my awesome app"
17+
# postuninstall_scripts:
18+
# - echo "Surprised Pickachu face"
19+
20+
keywords:
21+
- server
22+
- ssh
23+
- sftp
24+
- system
25+
26+
generic_name: ServerBox
27+
28+
categories:
29+
- Utility
30+
31+
startup_notify: true

0 commit comments

Comments
 (0)