Repository: pop-os/popsicle (language: rust)

Issue:
Set up AppImageUpdate
The Popsicle AppImage works great. However, AppImageUpdate should be set up to allow users to easily update on new releases. All that needs to be done is:

- set the environment variable `UPD_INFO` before calling appimagetool (when using linuxdeploy with `--output appimage`, you have to set it before that) to `gh-releases-zsync|pop-os|popsicle|latest|Popsicle_USB_Flasher-*.AppImage`
- upload the now-created `.zsync` file along with the AppImage (typically, you just need to change the pattern from `...AppImage` to `...AppImage*`

For uploading, you may want to switch to https://github.com/TheAssassin/pyuploadtool/. Then, the build job can then be run on every commit to build a continuous release. pyuploadtool uploads the files to a prerelease called "continuous" when building commits and releases called like the tag when building tags.


Discussion / hints:
Would you be willing to submit these changes as a PR?

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 354e37f..8442309 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,7 +18,7 @@ jobs:
       with:
         if-no-files-found: error
         name: popsicle-appimage-${{ github.sha }}
-        path: Popsicle_USB_Flasher-*.AppImage
+        path: Popsicle_USB_Flasher-*.AppImage*
 
   upload-to-release:
     if: github.event_name == 'release'
diff --git a/.gitignore b/.gitignore
index 7d838e2..3b6e1da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,7 @@ debian/*
 target/
 vendor/
 vendor.tar
+*.AppImage*
+*.zsync
+*.swp
+.appimagecraft-*/
diff --git a/appimagecraft.yml b/appimagecraft.yml
index 279c657..2523f06 100644
--- a/appimagecraft.yml
+++ b/appimagecraft.yml
@@ -16,12 +16,10 @@ scripts:
   post_build:
     # just USB Flasher might make sense on Pop!_OS, but not on other distros
     - sed -i 's|Name=USB Flasher|Name=Popsicle USB Flasher|' "$BUILD_DIR"/AppDir/usr/share/applications/com.system76.Popsicle.desktop
-    # these fixes can likely be removed when #105 is merged
-    - sed -i 's|System$|System;|' "$BUILD_DIR"/AppDir/usr/share/applications/com.system76.Popsicle.desktop
-    - sed -i 's|/usr/local/bin/||g' "$BUILD_DIR"/AppDir/usr/share/applications/com.system76.Popsicle.desktop
-    - sed -i 's|/usr/bin/||g' "$BUILD_DIR"/AppDir/usr/share/applications/com.system76.Popsicle.desktop
 
 appimage:
   linuxdeploy:
+    environment:
+      UPD_INFO: 'gh-releases-zsync|pop-os|popsicle|latest|Popsicle_USB_Flasher-*x86_64.AppImage.zsync'
     plugins:
       - gtk


Test patch: