Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Build AppImage #149

Merged
merged 10 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.