@@ -21,12 +21,14 @@ jobs:
2121 arch : amd64
2222 os : ubuntu-latest
2323 build_command : flutter build linux --release --target-platform linux-x64
24+ bundle_dir : x64
2425 artifact_base : ailurus-linux
2526 package_extension : AppImage
2627 - name : linux
2728 arch : arm64
2829 os : ubuntu-24.04-arm
2930 build_command : flutter build linux --release --target-platform linux-arm64
31+ bundle_dir : arm64
3032 artifact_base : ailurus-linux
3133 package_extension : AppImage
3234 - name : windows
6567 run : |
6668 git clone https://github.com/flutter/flutter.git --depth 1 -b stable "$HOME/flutter"
6769 echo "$HOME/flutter/bin" >> "$GITHUB_PATH"
70+ export PATH="$HOME/flutter/bin:$PATH"
6871 flutter --disable-analytics
6972 flutter --version
7073
@@ -74,10 +77,20 @@ jobs:
7477 sudo apt-get update
7578 sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev
7679
77- - name : Enable desktop targets
80+ - name : Enable Linux desktop target
81+ if : runner.os == 'Linux'
7882 run : |
7983 flutter config --enable-linux-desktop
84+
85+ - name : Enable Windows desktop target
86+ if : runner.os == 'Windows'
87+ shell : pwsh
88+ run : |
8089 flutter config --enable-windows-desktop
90+
91+ - name : Enable macOS desktop target
92+ if : runner.os == 'macOS'
93+ run : |
8194 flutter config --enable-macos-desktop
8295
8396 - name : Get dependencies
@@ -105,9 +118,9 @@ jobs:
105118 sudo apt-get install -y desktop-file-utils wget
106119 rm -rf AppDir dist
107120 mkdir -p AppDir/usr dist
108- cp build/linux/x64 /release/bundle/ailurus AppDir/usr/
109- cp -r build/linux/x64 /release/bundle/lib AppDir/usr/
110- cp -r build/linux/x64 /release/bundle/data AppDir/usr/
121+ cp build/linux/${{ matrix.platform.bundle_dir }} /release/bundle/ailurus AppDir/usr/
122+ cp -r build/linux/${{ matrix.platform.bundle_dir }} /release/bundle/lib AppDir/usr/
123+ cp -r build/linux/${{ matrix.platform.bundle_dir }} /release/bundle/data AppDir/usr/
111124 cp assets/icons/app_icon_source.png AppDir/ailurus.png
112125 cat > AppDir/AppRun <<'EOF'
113126 #!/bin/sh
0 commit comments