Skip to content

Commit a5e8e5f

Browse files
committed
Tweak build-linux action to also provide an AppImage
1 parent 99cbc4c commit a5e8e5f

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/rust.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838

3939
build-linux:
4040
needs: build-ffrunner
41-
runs-on: ubuntu-24.04
41+
# This runner image should stay the same, otherwise there is potential to break compatibility.
42+
# See https://v2.tauri.app/distribute/appimage/#limitations
43+
runs-on: ubuntu-22.04
4244
steps:
4345
- uses: actions/setup-node@v4
4446
with:
@@ -90,19 +92,30 @@ jobs:
9092
# key: cargo-deps-Linux
9193

9294
- name: Build
93-
run: cargo tauri build --no-bundle
95+
run: cargo tauri build --bundles appimage
9496

95-
- name: Package
97+
- name: Package Standalone
9698
run: |
9799
cd src-tauri/target/release
98100
mkdir linux-standalone
99-
mv -t linux-standalone openfusionlauncher ffrunner.exe d3d9_vulkan.dll assets defaults loader player mono
101+
cp -t linux-standalone openfusionlauncher ffrunner.exe d3d9_vulkan.dll assets defaults loader player mono
102+
103+
- name: Package AppImage
104+
run: |
105+
cd src-tauri/target/release
106+
mkdir linux-appimage
107+
cp -t linux-appimage bundle/appimage/OpenFusionLauncher_*.AppImage ffrunner.exe d3d9_vulkan.dll assets defaults loader player mono
100108
101109
- uses: actions/upload-artifact@v4.6.0
102110
with:
103111
name: openfusionlauncher-linux-standalone
104112
path: src-tauri/target/release/linux-standalone/
105113

114+
- uses: actions/upload-artifact@v4.6.0
115+
with:
116+
name: openfusionlauncher-linux-appimage
117+
path: src-tauri/target/release/linux-appimage/
118+
106119
build-windows:
107120
needs: build-ffrunner
108121
runs-on: windows-latest

0 commit comments

Comments
 (0)