Running AppImageUpdate from a script

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
Post Reply
davidosterberg
Posts: 529
Joined: Fri Sep 18, 2020 5:40 pm

Running AppImageUpdate from a script

Post by davidosterberg »

Hi

I would like to run AppImageUpdate automatically so that I can always have the latest weekly build (as a cron job) but I am running into an issue with AppImageUpdate-x86_64.AppImage.

When running AppImageUpdate the update process is running as expected and a new AppImage file is successfully written. But the process never exits and have to be stopped with Ctrl-C. This is fine for manual use, but if run from a script it is inconvenient.

I have seen this issue discussed before in the forum. But I could not see the resolution. Any good ideas?
Below I try to update the LinkStage3 fork, but issue seems to be the same for all AppImages.

Code: Select all

david@swift:~/Apps$ ./AppImageUpdate-x86_64.AppImage FreeCAD-asm3-Daily-Conda-Py3-Qt5-20210226-glibc2.12-x86_64.AppImage 
AppImageUpdate version 1-alpha (commit cb611d8), build 431 built on 2020-04-07 21:47:19 UTC
Fetching latest release information from GitHub API
Updating from GitHub Releases via ZSync
zsync2: Target file: /home/david/Apps/FreeCAD-asm3-Daily-Conda-Py3-Qt5-20220111-glibc2.12-x86_64.AppImage
zsync2: Reading seed file: /home/david/Apps/FreeCAD-asm3-Daily-Conda-Py3-Qt5-20210226-glibc2.12-x86_64.AppImage
zsync2: Usable data from seed files: 20,325109%
zsync2: Renaming temp file
zsync2: Fetching remaining blocks
zsync2: Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/103059612/df671083-3fe2-44b3-9b44-e64348b2b667?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220116%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220116T093127Z&X-Amz-Expires=300&X-Amz-Signature=c182fe6ccb590e66889cf86268a8fae6e2bb0d8674e28a90ad51f3838683cbfe&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=103059612&response-content-disposition=attachment%3B%20filename%3DFreeCAD-asm3-Daily-Conda-Py3-Qt5-20220111-glibc2.12-x86_64.AppImage&response-content-type=application%2Foctet-stream
zsync2: optimized ranges, old requests count 468, new requests count 72

zsync2: Verifying downloaded file
zsync2: checksum matches OK
zsync2: used 187650048 local, fetched 754468032

^C
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Running AppImageUpdate from a script

Post by Kunda1 »

Do you get the same response using using @antonyjr's version ?
https://wiki.freecadweb.org/AppImage#CL ... fficial.29

Edit: i'm starting to favor Snap packages over AppImages. Was even able to ask for a Snap for the RT's Link branch.
Should be live very soon https://github.com/realthunder/FreeCAD/pull/243 thanks to @ppd

Edit2: there is an option to install an 'edge' version that downloads a compiled nightly snap of LinkDaily. The update happens in the background and is seamless (from my experience of using the snap edge for the FreeCAD master (by the same author))
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
davidosterberg
Posts: 529
Joined: Fri Sep 18, 2020 5:40 pm

Re: Running AppImageUpdate from a script

Post by davidosterberg »

Thanks Kunda. I will try this out.
Post Reply