appimage

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
chrisb
Posts: 13406
Joined: Tue Mar 17, 2015 9:14 am

Re: appimage

Postby chrisb » Wed Aug 01, 2018 5:12 am

Recent questions here suggest we should have something like this for windows too.
looo
Posts: 2237
Joined: Mon Nov 11, 2013 5:29 pm

Re: appimage

Postby looo » Wed Aug 01, 2018 5:48 am

triplus wrote:Note that for Conda based AppImage support for delta updates got added:
Wow, this is a great achievement!
chrisb wrote:Recent questions here suggest we should have something like this for windows too.
Is there an alternative to appimage for windows?
chrisb
Posts: 13406
Joined: Tue Mar 17, 2015 9:14 am

Re: appimage

Postby chrisb » Wed Aug 01, 2018 7:26 am

looo wrote:
Wed Aug 01, 2018 5:48 am
Is there an alternative to appimage for windows?
I'm afraid no. But windows hasn't a package mechanism like Debian based systems with dependencies, so I assumed that the windows version of FreeCAD was already self contained.

Independent of the packaging, what I meant was a more automated update mechanism for FreeCAD.
looo
Posts: 2237
Joined: Mon Nov 11, 2013 5:29 pm

Re: appimage

Postby looo » Thu Aug 02, 2018 4:36 am

chrisb wrote:
Wed Aug 01, 2018 7:26 am
I'm afraid no. But windows hasn't a package mechanism like Debian based systems with dependencies, so I assumed that the windows version of FreeCAD was already self contained.
With conda we have a packagemanager. Now we only need an alternative to appimage to create bundles... Using a package-manager seems to be too difficult for people who are only interested in freecad.
triplus
Posts: 7955
Joined: Mon Dec 12, 2011 4:45 pm

Re: appimage

Postby triplus » Sun Aug 05, 2018 1:04 pm

There actually is FOSS framework available to achieve something like that. It is called Sparkle (macOS) and WinSparkle (Windows). AppImage approach is similar. There is one problem (in addition to implementing support) as Sparkle doesn't support GitHub (releases API). And therefore we would need to provide download files from HTTPS server.

P.S. I noticed if the AppImage delta update process gets canceled or interrupted (network issues). It will continue from that point on in the next try (and won't start again from scratch).
looo
Posts: 2237
Joined: Mon Nov 11, 2013 5:29 pm

Re: appimage

Postby looo » Sun Aug 05, 2018 5:58 pm

Thanks for sharing. Looks good.

I am still not sure how to create daily build with conda. I saw numba does this with updating the build number and uploading automatically to anaconda. I think this could also be done for freecad, but it would be nice to not store more than 10 builds... I am not sure if it's possible to delete packages with anaconda-client in an automatic way.
triplus
Posts: 7955
Joined: Mon Dec 12, 2011 4:45 pm

Re: appimage

Postby triplus » Mon Aug 06, 2018 9:08 pm

To be honest ATM i don't have any experience with Conda and no understanding of the process involved regarding how the Conda packages get build. As for tackling the version information i responded here:

https://forum.freecadweb.org/viewtopic. ... 10#p248955
triplus
Posts: 7955
Joined: Mon Dec 12, 2011 4:45 pm

Re: appimage

Postby triplus » Mon Aug 20, 2018 9:16 pm

Note that i added delta updates support for daily PPA based AppImage two weeks back. PPA wasn't updated and i couldn't test if it works. Therefore i waited with the announcement to do that first. By following the same instructions:

https://forum.freecadweb.org/viewtopic. ... 60#p247818

Updating two weeks old AppImage (22MB):

Code: Select all

zsync2: Usable data from seed files: 90,275369%
zsync2: used 213237760 local, fetched 22969416
Updating one day old AppImage (11MB):

Code: Select all

zsync2: Usable data from seed files: 95,236526%
zsync2: used 224956416 local, fetched 11250760
P.S. This option will likely prove to be useful for people on a limited bandwidth.
User avatar
sgrogan
Posts: 4683
Joined: Wed Oct 22, 2014 5:02 pm

Re: appimage

Postby sgrogan » Tue Aug 28, 2018 10:07 pm

triplus wrote:
Mon Aug 20, 2018 9:16 pm
Note that i added delta updates support for daily PPA based AppImage two weeks back. PPA wasn't updated and i couldn't test if it works. Therefore i waited with the announcement to do that first
@triplus can you make a post like this https://forum.freecadweb.org/viewtopic. ... 60#p247818
That I can cut and paste to the releases page (You can use mark-down)

I need to test this, seems ideal.
triplus
Posts: 7955
Joined: Mon Dec 12, 2011 4:45 pm

Re: appimage

Postby triplus » Thu Aug 30, 2018 2:55 pm

Hi @sgrogan

Will do (on Saturday).