Skip to content

Commit

Permalink
ci: compile to appimage
Browse files Browse the repository at this point in the history
closes #10
  • Loading branch information
cecilia-sanare committed Mar 22, 2024
1 parent f33ab58 commit 79b8b99
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ jobs:
if: matrix.build == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
sudo apt-get install -y libssl-dev desktop-file-utils zsync
- name: Download AppImageKit
run: |
curl -L https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -o ./appimagetool.AppImage
chmod +x ./appimagetool.AppImage
./appimagetool.AppImage --appimage-extract
- uses: cachix/install-nix-action@v18
with:
Expand Down Expand Up @@ -68,6 +74,12 @@ jobs:
cargo install cargo-generate-rpm
cargo generate-rpm -o protontweaks.rpm
- name: Build AppImage (linux)
if: matrix.build == 'linux'
run: |
cargo install cargo-appimage
cargo appimage
- name: Rename Binaries (linux / macos)
if: matrix.build != 'windows'
run: mv target/${{ matrix.target }}/release/protontweaks target/${{ matrix.target }}/release/protontweaks-${{ matrix.target }}
Expand All @@ -78,6 +90,7 @@ jobs:
path: |
target/${{ matrix.target }}/release/protontweaks.exe
target/${{ matrix.target }}/release/protontweaks-${{ matrix.target }}
target/appimage/protontweaks.AppImage
protontweaks.deb
protontweaks.rpm
Expand All @@ -88,5 +101,6 @@ jobs:
files: |
target/${{ matrix.target }}/release/protontweaks.exe
target/${{ matrix.target }}/release/protontweaks-${{ matrix.target }}
target/appimage/protontweaks.AppImage
protontweaks.deb
protontweaks.rpm
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ lcov.info
*.rpm
.protontweaks.json
tests/.configs/
icon.png
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ validate:
killall steam && sleep 5 || true
nix build
nix shell --command steam

validate-appimage:
cargo appimage
appimage-run ./target/appimage/protontweaks.AppImage --version
2 changes: 2 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ let
gcc
rustfmt
clippy
appimagekit
appimage-run
];

system = {
Expand Down

0 comments on commit 79b8b99

Please sign in to comment.