Hi, I realy like to export GP projects as app, but would it be posible to add a something like a dropdown to the "Export as App" button to allow exports for all supportet platforms?
So I would be able to create a GP project on Windows and export it for Windows, Linux and Mac. THis would be very helpful.
Thanks.
Export as App for other Platforms?
Moderator: MSandro
Re: Export as App for other Platforms?
Yes, I agree, that would be really cool!
It should be possible, but it might be a while before I get to it.
Meanwhile, a workaround is to open the project in GP and "export as app" on each platform. You'd probably want to verify that you app actually runs on that platform anyhow, right?
P.S. In case anyone wants to try doing this as a GP extension, the relevant code is in AppMaker.gp. It works by appending an embedded file system (in Zip format) to the executable file for the platform. Inside the embedded file system are the files GP needs to run, the project file, and a startup script that opens and runs the project file. The MacOS case is a bit more complicated because it needs to make a Mac application bundle, so I'd start with Linux and Windows.
It should be possible, but it might be a while before I get to it.
Meanwhile, a workaround is to open the project in GP and "export as app" on each platform. You'd probably want to verify that you app actually runs on that platform anyhow, right?
P.S. In case anyone wants to try doing this as a GP extension, the relevant code is in AppMaker.gp. It works by appending an embedded file system (in Zip format) to the executable file for the platform. Inside the embedded file system are the files GP needs to run, the project file, and a startup script that opens and runs the project file. The MacOS case is a bit more complicated because it needs to make a Mac application bundle, so I'd start with Linux and Windows.
- Picochilla
- Posts: 28
- Joined: Sep 23rd, '17, 17:44
Re: Export as App for other Platforms?
Thank you very much, I'll maybe try to realize this with you tipps by my self.