Skip to content

Commit

Permalink
ci: AppImage builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Beast committed Sep 9, 2024
1 parent d5cdf91 commit 98c2b59
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y build-essential pkg-config autoconf libtool ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf unzip python-is-python3 p7zip-full
sudo apt install -y build-essential pkg-config autoconf libtool ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf unzip python-is-python3 p7zip-full fuse libfuse2
- name: Build monero_c
run: |
source .env
Expand All @@ -48,13 +48,21 @@ jobs:
- name: Zip binary with lib
run: |
which 7z
7z a -tzip monero-tui-${{ matrix.triplets[1] }}.zip -w bin/. lib
- uses: actions/upload-artifact@v4
7z a -tzip ./bin/monero-tui-${{ matrix.triplets[1] }}.zip -w bin/. lib
- uses: actions/upload-artifact@v3
with:
name: monero-tui-${{ matrix.triplets[1] }}
path: monero-tui-${{ matrix.triplets[1] }}.zip
path: ./bin/monero-tui-${{ matrix.triplets[1] }}.zip
- name: Build AppImage
run: |
./build_appimage.sh
- uses: actions/upload-artifact@v3
with:
name: monero-tui-${{ matrix.triplets[1] }}.AppImage
path: ./bin/monero-tui-${{ matrix.triplets[1] }}.AppImage
- name: Create release ${{ github.event.release.tag_name }}
uses: softprops/action-gh-release@v2
with:
files: |
monero-tui-${{ matrix.triplets[1] }}.zip
./bin/monero-tui-${{ matrix.triplets[1] }}.zip
./bin/monero-tui-${{ matrix.triplets[1] }}.AppImage
4 changes: 4 additions & 0 deletions appimage/monero-tui.AppDir/AppRun
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
current_dir="$(dirname "$(readlink -f "${0}")")"
cd $current_dir/usr
"$current_dir/usr/bin/monero-tui" "$@"
10 changes: 10 additions & 0 deletions appimage/monero-tui.AppDir/monero-tui.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=Monero TUI
GenericName=Monero-TUI
Comment=Monero TUI wallet
Type=Application
StartupNotify=true
Terminal=true
Exec=monero-tui
Icon=monero-tui
Categories=Network;Finance;Office;
Binary file added appimage/monero-tui.AppDir/monero-tui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions build_appimage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
pushd appimage
wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage

cp -r ../bin/ ./monero-tui.AppDir/usr/
cp -r ../lib/ ./monero-tui.AppDir/usr/

ARCH=x86_64 ./appimagetool-x86_64.AppImage -n ./monero-tui.AppDir ../bin/monero-tui.AppImage
popd

0 comments on commit 98c2b59

Please sign in to comment.