From 11af393633be8d7da0ab35f9ceaf4b8ec1e49d0a Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Tue, 30 Jun 2026 03:52:06 +0200 Subject: [PATCH] removed .AppImage --- .github/workflows/release.yml | 60 ----------------------------------- README.md | 22 ++----------- 2 files changed, 2 insertions(+), 80 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac8ae87..d210ce3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,71 +107,12 @@ jobs: # Build Debian package dpkg-deb --build deb proton-drive-linux_${{ env.VERSION }}_amd64.deb - - name: Package AppImage (.AppImage) - run: | - # 1. Set up AppDir structure - mkdir -p AppDir/usr/bin - mkdir -p AppDir/usr/share/applications - mkdir -p AppDir/usr/share/icons/hicolor/scalable/apps - - # Copy binaries - cp target/release/pdfs AppDir/usr/bin/ - cp target/release/pdfs-tray AppDir/usr/bin/ - cp target/release/pdfs-app AppDir/usr/bin/ - - # Copy desktop integration files - cp packaging/io.narl.proton-drive-linux.desktop AppDir/usr/share/applications/ - cp packaging/io.narl.proton-drive-linux.svg AppDir/usr/share/icons/hicolor/scalable/apps/ - - # Create required AppImage root symlinks - ln -s usr/share/applications/io.narl.proton-drive-linux.desktop AppDir/ - ln -s usr/share/icons/hicolor/scalable/apps/io.narl.proton-drive-linux.svg AppDir/ - - # 2. Write custom AppRun to support multi-call execution - cat <<'EOF' > AppDir/AppRun - #!/bin/sh - HERE="$(dirname "$(readlink -f "${0}")")" - ARG0="$(basename "${0}")" - case "${ARG0}" in - pdfs) - exec "${HERE}/usr/bin/pdfs" "$@" - ;; - pdfs-tray) - exec "${HERE}/usr/bin/pdfs-tray" "$@" - ;; - pdfs-app) - exec "${HERE}/usr/bin/pdfs-app" "$@" - ;; - *) - # Support running a specific binary by passing its name as first arg - if [ "$1" = "pdfs" ] || [ "$1" = "pdfs-tray" ] || [ "$1" = "pdfs-app" ]; then - CMD="$1" - shift - exec "${HERE}/usr/bin/${CMD}" "$@" - else - # Default behavior: run GUI app - exec "${HERE}/usr/bin/pdfs-app" "$@" - fi - ;; - esac - EOF - chmod +x AppDir/AppRun - - # 3. Download and extract appimagetool (avoids FUSE mount failures in CI) - curl -Lo appimagetool https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage - chmod +x appimagetool - ./appimagetool --appimage-extract - - # 4. Generate AppImage - ARCH=x86_64 ./squashfs-root/AppRun AppDir proton-drive-linux-${{ env.VERSION }}-x86_64.AppImage - - name: Upload Workflow Artifacts uses: actions/upload-artifact@v4 with: name: proton-drive-linux-builds path: | *.deb - *.AppImage *.tar.gz if-no-files-found: error @@ -181,7 +122,6 @@ jobs: with: files: | *.deb - *.AppImage *.tar.gz draft: false prerelease: false diff --git a/README.md b/README.md index ff90f56..6c51d6a 100644 --- a/README.md +++ b/README.md @@ -64,24 +64,7 @@ Install the debian package via `dpkg` or `apt`: sudo apt install ./proton-drive-linux_*.deb ``` -### 2. AppImage (.AppImage) -The AppImage is a portable build that packages all binaries. Make it executable and run it: -```bash -chmod +x proton-drive-linux-*.AppImage -./proton-drive-linux-*.AppImage -``` - -> [!TIP] -> The AppImage is a multi-call binary. By default, running it launches the GUI. You can run the CLI or the Tray app by passing their name as the first argument, or by renaming/symlinking the AppImage file: -> ```bash -> # Run CLI -> ./proton-drive-linux-*.AppImage pdfs --help -> -> # Run Tray -> ./proton-drive-linux-*.AppImage pdfs-tray -> ``` - -### 3. Arch Linux +### 2. Arch Linux A local `PKGBUILD` is available under the `packaging/` directory. You can build and install it using: ```bash cd packaging && makepkg -fi @@ -104,9 +87,8 @@ This project has a GitHub Actions CI workflow configured under `.github/workflow 3. **Artifact Packaging**: - Generates a `.tar.gz` containing the raw binaries (`pdfs`, `pdfs-app`, `pdfs-tray`). - Packs them into a Debian package (`.deb`). - - Builds a portable AppImage using `appimagetool` without requiring FUSE inside CI. 4. **Publishing**: - - Creates a GitHub Release matching the pushed tag and uploads the `.deb`, `.AppImage`, and `.tar.gz` packages as release assets. + - Creates a GitHub Release matching the pushed tag and uploads the `.deb` and `.tar.gz` packages as release assets. - For manual runs, compiles and exposes the packages as workflow run artifacts for testing. ---