diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index bbeb70b..9d738f4 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -48,7 +48,6 @@ jobs: uses: subosito/flutter-action@v2 with: channel: stable - cache: true - run: | sudo apt-get update -y sudo apt-get install -y ninja-build libgtk-3-dev @@ -65,3 +64,18 @@ jobs: with: name: build-output-linux path: build/linux/x64/release/bundle + - name: Build AppImage + run: | + rm -r Solian.AppDir | true + mkdir Solian.AppDir + cp -r build/linux/x64/release/bundle/* Solian.AppDir + cp -r buildtools/appimage_config/* Solian.AppDir + cp assets/icon/icon-light-radius.png Solian.AppDir + sudo chmod +x buildtools/appimagetool-x86_64.AppImage + sudo chmod +x Solian.AppDir/AppRun + ./buildtools/appimagetool-x86_64.AppImage Solian.AppDir + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: build-output-linux-appimage + path: './*.AppImage*' diff --git a/buildtools/appimage_config/AppRun b/buildtools/appimage_config/AppRun new file mode 100755 index 0000000..883be61 --- /dev/null +++ b/buildtools/appimage_config/AppRun @@ -0,0 +1,4 @@ +#!/bin/sh + +cd "$(dirname "$0")" +exec ./surface diff --git a/buildtools/appimage_config/Solian.desktop b/buildtools/appimage_config/Solian.desktop new file mode 100644 index 0000000..8fc249b --- /dev/null +++ b/buildtools/appimage_config/Solian.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Terminal=false +Name=Solian +Exec=surface %u +Icon=icon-light-radius +Categories=Network; diff --git a/buildtools/appimagetool-x86_64.AppImage b/buildtools/appimagetool-x86_64.AppImage new file mode 100755 index 0000000..f682962 Binary files /dev/null and b/buildtools/appimagetool-x86_64.AppImage differ