Hi, got a question about Windows deployment and externals.
My current LC project references a tool, which, for MacOS is a script file and a folder of essential files. For Windiws, it's actually a little easier as I don't need that tool with the LC app.
What I have noticed is that Mac apps are bundles, and the files I've specified are contained in the bundle. Move therapy, and everything is moved. That's good. It reduces the likelihood of the user breaking it. In Windows, I notice that the specified files are put in a folder next to the .exe file. If the user moves the .exe, the included files will be left behind, breaking the application in the process.
Is there a way to select files to be embedded in the .exe somewhere? Or am I missing something vital that will make LC output an application bundle for Windows?
This isn't a major problem for me at the moment, but this could be an issue later if I can get another project off the ground.
External files floating loose
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: External files floating loose
Probably the way to go is to put the contents of your essential files into custom properties. You can then on start up check to see if these files exist in for example the users documents folder and if not, write them out from the custom property.
See this post for an example.
http://runtime-revolution.278305.n4.nab ... 56337.html
See this post for an example.
http://runtime-revolution.278305.n4.nab ... 56337.html
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
Re: External files floating loose
I've just added an example stack to help with this to the User Sample stacks
Save and Deploy files to and from Custom Properties
This stack is a response to questions asked about embedding files in a LiveCode application.
It demonstrates saving the contents of a file(s) into a Custom Property (CP) that can later be deployed to the users system.
Deployment locations account for the users OS Win,Mac,Linux
http://livecodeshare.runrev.com/stack/7 ... roperties-
Save and Deploy files to and from Custom Properties
This stack is a response to questions asked about embedding files in a LiveCode application.
It demonstrates saving the contents of a file(s) into a Custom Property (CP) that can later be deployed to the users system.
Deployment locations account for the users OS Win,Mac,Linux
http://livecodeshare.runrev.com/stack/7 ... roperties-
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
-
- Posts: 6
- Joined: Mon Jan 19, 2015 10:15 pm
Re: External files floating loose
Thank's Andy.
Great example stacks.
John
Great example stacks.
John