Skip to content

Commit

Permalink
[CI] Build AppImage (#149)
Browse files Browse the repository at this point in the history
Updated gh workflow, fixes build issues
  • Loading branch information
qurious-pixel authored Apr 25, 2023
1 parent ddd20e3 commit 895b5e3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,22 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-20.04]
cc: [gcc]
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.cc }}
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 5 additions & 2 deletions package/build_appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 modified package/linuxdeploy-x86_64.AppImage
Binary file not shown.

0 comments on commit 895b5e3

Please sign in to comment.