Skip to content

Commit

Permalink
Added appimage
Browse files Browse the repository at this point in the history
  • Loading branch information
ferraridamiano committed Jan 28, 2024
1 parent ddffeb5 commit 41be122
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,23 @@ jobs:
- name: Tar linux package
run: tar -C build/linux/x64/release/bundle -czf converternow-linux-x64.tar.gz .

- name: Build appimage
run: |
wget https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
mkdir ConverterNOW.AppDir
cp -r build/linux/x64/release/bundle/* ConverterNOW.AppDir
cp assets/app_icons/logo.svg ConverterNOW.AppDir
echo -e '#!/bin/sh\ncd "$(dirname "$0")"\nexec ./converternow"' > ConverterNOW.AppDir/AppRun
chmod +x ConverterNOW.AppDir/AppRun
cp snap/gui/converternow.desktop ConverterNOW.AppDir
desktop-file-edit --set-icon="logo" --set-key="Exec" --set-value="converternow %u" ConverterNOW.AppDir/converternow.desktop
./appimagetool-x86_64.AppImage ConverterNOW.AppDir
- name: Release to GitHub
uses: ncipollo/release-action@v1
with:
artifacts: "converternow-linux-x64.tar.gz"
artifacts: "converternow-linux-x64.tar.gz,Converter_NOW-x86_64.AppImage"
token: ${{ secrets.GH_TOKEN }}
tag: ${{ steps.version.outputs.content }}
commit: ${{ github.sha }}
Expand Down

0 comments on commit 41be122

Please sign in to comment.