Skip to content

Commit 5c95794

Browse files
authored
Update README.md
[ci skip]
1 parent ce628af commit 5c95794

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

AppImageUpdate.AppDir/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,37 @@ When you have a new version, simply put the updated `Etcher-linux-x64.AppImage.
138138

139139
At this point, AppImageUpdate should work. AppImageUpdate is really just an example GUI around the (work-in-progress but useable) [appimageupdate](https://github.com/probonopd/AppImageKit/blob/master/AppImageUpdate.AppDir/usr/bin/appimageupdate) bash script. You could put `appimageupdate` (and its dependency [zsync_curl](https://github.com/probonopd/zsync-curl)) inside `usr/bin` of the AppImage, and call `appimageupdate` from within your app and even have a little GUI around it; or reimplement it in the language of your app.
140140

141+
## Other example
142+
143+
```
144+
# Let's use ".AppImage" as the standard suffix
145+
mv krita-3.0-x86_64.appimage Krita-3.0-x86_64.AppImage
146+
147+
# Note that there is no "3" in the URL and no "3.0"
148+
# as this URL must always point to the latest/current zsync file
149+
URL="zsync|http://files.kde.org/krita/linux/Krita-latest-x86_64.AppImage.zsync"
150+
151+
wget https://github.com/probonopd/AppImageKit/raw/master/AppImageUpdate.AppDir/usr/bin/appimageupdate
152+
wget https://github.com/probonopd/zsync-curl/releases/download/_binaries/zsync_curl
153+
chmod a+x zsync_curl
154+
PATH=.:$PATH bash appimageupdate Krita-3.0-x86_64.AppImage set $URL
155+
156+
# Should say:
157+
# "Changed to zsync|http://files.kde.org/krita/linux/Krita-latest-x86_64.AppImage.zsync"
158+
159+
sudo apt install zsync
160+
zsyncmake Krita-3.0-x86_64.AppImage
161+
mv Krita-3.0-x86_64.AppImage.zsync Krita-latest-x86_64.AppImage.zsync
162+
163+
# Now upload Krita-3.0-x86_64.AppImage and Krita-latest-x86_64.AppImage.zsync to
164+
# http://files.kde.org/krita/linux/
165+
166+
# Check whether appimageupdate finds the stuff on the server by running on the client:
167+
PATH=.:$PATH bash appimageupdate ./Krita-3.0-x86_64.AppImage
168+
169+
# Assuming that 3.0.1 comes out, repeat the steps with 3.0.1
170+
```
171+
141172
## TODO
142173

143174
* Implement a GUI

0 commit comments

Comments
 (0)