Packaging a Standalone

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
egolombek
Posts: 74
Joined: Thu Jan 30, 2020 2:11 pm

Packaging a Standalone

Post by egolombek » Mon Jun 01, 2020 11:43 am

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?

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Packaging a Standalone

Post by jmburnod » Mon Jun 01, 2020 1:48 pm

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
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Packaging a Standalone

Post by dunbarx » Mon Jun 01, 2020 2:07 pm

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

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Packaging a Standalone

Post by jmburnod » Mon Jun 01, 2020 2:35 pm

Hi Craig,
Is it that there are references to external files that you are talking about?
I think yes
Jean-Marc
https://alternatic.ch

egolombek
Posts: 74
Joined: Thu Jan 30, 2020 2:11 pm

Re: Packaging a Standalone

Post by egolombek » Mon Jun 01, 2020 3:12 pm

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?

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Packaging a Standalone

Post by jmburnod » Mon Jun 01, 2020 5:09 pm

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
https://alternatic.ch

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Packaging a Standalone

Post by bangkok » Tue Jun 02, 2020 3:53 am

InnoSetup (windows)

Perfect to create "install packages".

http://www.jrsoftware.org/isinfo.php

egolombek
Posts: 74
Joined: Thu Jan 30, 2020 2:11 pm

Re: Packaging a Standalone

Post by egolombek » Tue Jun 02, 2020 6:59 am

Thank you! I will check it out.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Packaging a Standalone

Post by jmburnod » Tue Jun 02, 2020 11:45 am

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
https://alternatic.ch

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”