[CI] Build AppImage (#149)

Updated gh workflow, fixes build issues
This commit is contained in:
qurious-pixel 2023-04-25 09:44:21 -07:00 committed by GitHub
parent ddd20e3e91
commit 895b5e3865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 5 deletions

View File

@ -15,7 +15,7 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-20.04]
cc: [gcc]
runs-on: ${{ matrix.os }}
env:
@ -23,8 +23,14 @@ jobs:
steps:
- run: sudo apt-get update -y
- run: sudo apt-get install -y libgtkmm-3.0-dev libcurl4-gnutls-dev libyajl-dev valgrind
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: make
- run: sudo make install
- run: make clean
- run: which samrewritten
- run: cd package && ./build_appimage.sh
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: SamRewritten
path: package/Sam*.AppImage

View File

@ -22,7 +22,8 @@ It comes with third-party tools integration and a nice user interface.
SamRewritten is constantly under development, if you think you can give us a hand, feel free to reach us :)
### ⚠️ As of now, SamRewritten only works if Steam has been installed through your package manager (apt, pacman, ...)
### ⚠️ SamRewritten only works if Steam has been installed through your package manager (apt, pacman, ...).
### ⚠️ Flatpak is *not* supported but contributions are welcome!
# Building

View File

@ -7,8 +7,11 @@ if [ ! -f ../bin/samrewritten ]; then
popd
fi
export LINUXDEPLOY="linuxdeploy-x86_64.AppImage --appimage-extract-and-run"
rm -rf AppDir
./linuxdeploy-x86_64.AppImage --appdir AppDir
chmod +x ${LINUXDEPLOY%%--*}
./$LINUXDEPLOY --appdir AppDir
grep -v Icon samrewritten.desktop > AppDir/myapp.desktop
echo Icon=myapp >> AppDir/myapp.desktop
cp ../assets/icon_256.png AppDir/myapp.png
@ -29,4 +32,4 @@ cp ../bin/samrewritten AppDir/usr/bin
cp ../bin/libsteam_api.so AppDir/usr/lib
cp ../assets/icon_256.png AppDir/usr/assets/
LD_LIBRARY_PATH=AppDir/usr/lib ./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage
LD_LIBRARY_PATH=AppDir/usr/lib ./$LINUXDEPLOY --appdir AppDir --exclude-library=libgmodule-2.0 --output appimage

Binary file not shown.