Skip to content

Commit 929cee5

Browse files
committed
refactor: use latest code to build the appimage
1 parent b6e6ebb commit 929cee5

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/stable-releases.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,24 @@ jobs:
3030
twine upload dist/*
3131
3232
release-appimage:
33-
runs-on: ubuntu-latest
33+
runs-on: ubuntu-20.04
3434
steps:
3535
- uses: actions/checkout@v2
36+
- name: Get Version
37+
id: get_version
38+
run: echo ::set-output name=VERSION::$(grep -Po 'version="\K((\d|\.)+)' setup.py)
39+
- name: Install dependencies
40+
run: |
41+
sudo apt install -y python3.8-minimal python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace
42+
sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool
43+
sudo chmod +x /usr/local/bin/appimagetool
44+
- name: Install appimage-builder
45+
run: |
46+
sudo python3.8 -m pip install .
3647
- name: Build AppImage
37-
uses: AppImageCrafters/build-appimage@v1
38-
env:
39-
APPIMAGE_BUILDER_VERSION: ${{ github.ref }}
40-
with:
41-
recipe: AppImageBuilder.yml
48+
run: |
49+
export APPIMAGE_BUILDER_VERSION=${{ steps.get_version.outputs.VERSION }}
50+
appimage-builder --skip-test
4251
- uses: "marvinpinto/action-automatic-releases@latest"
4352
with:
4453
repo_token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)