From b96a2be0423020388f9c30ef0a9d133cc8235636 Mon Sep 17 00:00:00 2001 From: quintenvandamme Date: Wed, 24 Apr 2024 11:52:18 +0200 Subject: [PATCH] Update build process to include AppImage creation using Appimagetool --- .github/workflows/build.yml | 3 --- Makefile | 8 ++++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b00b8c..40fed68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/Makefile b/Makefile index 0519b4a..3bb4631 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 \ No newline at end of file + 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/" \ No newline at end of file