compile exe files from code

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Eddy
Posts: 3
Joined: Sat Sep 13, 2008 12:24 am

compile exe files from code

Post by Eddy » Sat Sep 13, 2008 12:29 am

How can i make my program compile its own exe files (just like Revolution does) ?

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Sat Sep 13, 2008 1:08 am

Application made with Rev can load any stack, and run code within it. This allows many functional things to work that would need additional executables in other Languages.
But Rev Standalones cannot make Standalones themselves, because then everybody could just resell the Rev IDE with some minor changes, dooming Runtime Revolution in endless Legal battles (This has actually happened to an xtalk programming environment once). Therefore that capability has not been implemented, and is additionally forbidden per the license.

So if you want to make a program that creates programs you're probably best off to choose another language then Rev.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Eddy
Posts: 3
Joined: Sat Sep 13, 2008 12:24 am

Post by Eddy » Sat Sep 13, 2008 1:28 am

In fact i was thinking about a program where the final user could put some texts, images... etc together, make some customization to the UI and compile it into a single exe file. A kind of Ebook Maker.

Thanks for your reply

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Sat Sep 13, 2008 5:38 am

That sort of application is expressly forbidden by the Revolution License Agreement - as you'd basically be competing with them using their own technology.

Having said that, why does it need to be a single .exe file? You could employ a 'player' approach like StackRunner for the distribution along withyour authoring application and write your own 'bundler' which puts the player and the ebook together into a directory that your user can copy.

Just a few thoughts,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Eddy
Posts: 3
Joined: Sat Sep 13, 2008 12:24 am

Post by Eddy » Sat Sep 13, 2008 4:23 pm

That's an interesting approach. I'll look into it. Thanks for helping.

Post Reply