From 7e298d3bbfe3f9cfeb236febc6adee91346057be Mon Sep 17 00:00:00 2001 From: Trevin Chow Date: Fri, 3 Apr 2026 20:14:20 -0700 Subject: [PATCH] feat: embed AppImage update information for delta updates Add a top-level publish config in electron-builder.json5 pointing to GitHub Releases. This embeds the update information URL in the AppImage header, enabling tools like AppImageUpdate, AppImageLauncher, and AppManager to perform delta updates instead of full re-downloads. Also update the Linux build workflow to upload the generated .zsync file alongside the .AppImage artifact. Fixes #219 --- .github/workflows/build.yml | 5 +++-- electron-builder.json5 | 17 +++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 790884e..4cc446f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,6 +94,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: linux-installer - path: release/**/*.AppImage + path: | + release/**/*.AppImage + release/**/*.zsync retention-days: 30 - diff --git a/electron-builder.json5 b/electron-builder.json5 index a8f1dc1..40fce0a 100644 --- a/electron-builder.json5 +++ b/electron-builder.json5 @@ -20,14 +20,15 @@ "!CONTRIBUTING.md", "!LICENSE" ], - "extraResources": [ - { - "from": "public/wallpapers", - "to": "assets/wallpapers" - } - ], - - "mac": { + "extraResources": [ + { + "from": "public/wallpapers", + "to": "assets/wallpapers" + } + ], + "publish": [{"provider": "github"}], + + "mac": { "hardenedRuntime": false, "target": [ {