You are here

Cross-Platform Portable App

5 posts / 0 new
Last post
mfidler
Offline
Last seen: 11 years 8 months ago
Joined: 2010-01-14 12:13
Cross-Platform Portable App

I have made a cross-platform (Mac and Windows) portable app. It follows the PortableApps convention with the exception of an "Contents" folder that has Mac specific information. Would this mess up the portable application installer?

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 34 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Not Yet Supported

Unfortunately, only an App and Other folder are picked up by the installer at the moment. A 3rd folder would be ignored at present. What app is it btw and how are you launching it from the app's root directory?

Sometimes, the impossible can become possible, if you're awesome!

mfidler
Offline
Last seen: 11 years 8 months ago
Joined: 2010-01-14 12:13
It is Emacs. The structure

It is Emacs. The structure of the directory is as follows:


EmacsPortable.App
EmacsPortable.App\EmacsPortableApp.exe
EmacsPortable.App\...
EmacsPortable.App\App\emacs-X.XX\...
EmacsPortable.App\App\emacs-X.XX\MacOS
EmacsPortable.App\Contents\...
EmacsPortable.App\Data\...
EmacsPortable.App\Other\...

The emacs-X.XX are the emacs windows binaries and support files

The MacOS are the compiled binaries for MacOS, but not the support files.

The Contents are a hacked Emacs Laucher for Mac; Everything is still stored in Data

Other has the NSIS launcher scripts.

I could make the launcher install the Contents directory after running to make it conform to the PAF installer, though this is not elegant.

The .App extension of the folder is required for this to be cross-platform.

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 2 weeks ago
Developer
Joined: 2008-09-30 19:18
AppID

You will need to set the AppID in appinfo.ini to EmacsPortable.App.

And as for the Contents folder, just add some custom code into the installer: (click here and scroll up three paragraphs to see what I mean).

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 34 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Emacs.App folder inside App?

How about if you had an Emacs.App folder inside EmacsPortable\App that then pointed to the Data directory to folders up?

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments