Skip to content

Commit

Permalink
Update build process to include AppImage creation using Appimagetool
Browse files Browse the repository at this point in the history
  • Loading branch information
quintenvandamme committed Apr 24, 2024
1 parent f4f137c commit b96a2be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
with:
python-version: '3.10'

- name: Download Appimagetool
run: sudo apt-get install -y appimagetool

- name: Build TV Downloader
run: make appimage

Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ build: clean pip_requirements download_ffmpeg
@echo "=> Done. Binary is in out/"

appimage: build
@echo "=> Downloading AppImage Tool"
curl -L https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-$(ARCH).AppImage -o appimagetool.AppImage
chmod +x appimagetool.AppImage
@echo "=> Building AppImage"
mkdir -p out/appimage.AppDir
mkdir -p out/appimage.AppDir/usr/bin
Expand All @@ -38,5 +41,6 @@ appimage: build
cp data/logo/logo-256x256.png out/appimage.AppDir/
chmod +x out/appimage.AppDir/AppRun
chmod +x out/appimage.AppDir/tvdownloader.desktop
ARCH=$(ARCH) appimagetool out/appimage.AppDir out/tvdownloader-$(OS)-$(ARCH).AppImage
rm -rf out/appimage.AppDir
ARCH=$(ARCH) ./appimagetool.AppImage out/appimage.AppDir out/tvdownloader-$(OS)-$(ARCH).AppImage
rm -rf out/appimage.AppDir appimagetool.AppImage
@echo "=> Done. AppImage is in out/"

0 comments on commit b96a2be

Please sign in to comment.