Page 1 of 1
Packaging a Standalone
Posted: Mon Jun 01, 2020 11:43 am
by egolombek
So... I have created my first standalone app and I want to be able to send it to others. The problem is, that it uses a bunch of inclusions (pdf driver, database file, etc.. in total 9 files). Usually when you buy a program, there is an installer that automatically downloads everything and places it in the right place. Any idea how one can do this?
Re: Packaging a Standalone
Posted: Mon Jun 01, 2020 1:48 pm
by jmburnod
Hi,
I tested two ways using libURLDownloadToFile for an app with folders, subfolders and 4000 files (for OS X Windows and iOS:
1. Download a .zip file from server
It is faster than download file by file, but i've often got "request time out" which fails install
2. Download file per file
More secure but slower
Best regards
Jean-Marc
Re: Packaging a Standalone
Posted: Mon Jun 01, 2020 2:07 pm
by dunbarx
Hi.
Not sure I understand the issue. If you have a stack file that is designated as the "launcher" or "splash" stack, and add any number of other stacks in the standalone builder, then the package you end up with is completely self contained. Anyone loading that will find an "app" that works right out of the box.
Is it that there are references to external files that you are talking about?
Craig
Re: Packaging a Standalone
Posted: Mon Jun 01, 2020 2:35 pm
by jmburnod
Hi Craig,
Is it that there are references to external files that you are talking about?
I think yes
Jean-Marc
Re: Packaging a Standalone
Posted: Mon Jun 01, 2020 3:12 pm
by egolombek
Hi. I am talking about database drivers, pdf driver, and the local database file itself. All are saved separately.
In terms of downloading a Zip folder, or individual files, it's definitely possible, but also not very smooth. You download an app from the web and typically there is an installer that places everything in the right spot. Is it possible with liveCode?
Re: Packaging a Standalone
Posted: Mon Jun 01, 2020 5:09 pm
by jmburnod
You download an app from the web and typically there is an installer that places everything in the right spot. Is it possible with liveCode?
Yes i use it for my app. Installer is one cd of standalone
At the first open app an installer is opened and you may copy all files where you want after the user accept install.
Jean-Marc
Re: Packaging a Standalone
Posted: Tue Jun 02, 2020 3:53 am
by bangkok
InnoSetup (windows)
Perfect to create "install packages".
http://www.jrsoftware.org/isinfo.php
Re: Packaging a Standalone
Posted: Tue Jun 02, 2020 6:59 am
by egolombek
Thank you! I will check it out.
Re: Packaging a Standalone
Posted: Tue Jun 02, 2020 11:45 am
by jmburnod
I choose livecode to make an installer because i don't want depend of external things (Update are easier)
I see InnoSetUp is for windows only. LiveCode allows to make an installer for OS X, windows iOS (tested) and probably Linux and Android.
Jean-Marc