Hi!
I want to make jEdit 5.0 portable. As a starting point I tried this appinfi.ini, created with the PortableApps.com Deelopment Toolkit
[Format]
Type=PortableApps.comFormat
Version=2.0
[Details]
Name=jEdit Portable
AppID=portablejEdit
Publisher=jEdit team & PortableApps.com
Homepage=PortableApps.com/portablejEdit
Category=Accessibility
Description=jEdit is a ___
Language=Multilingual
[License]
Shareable=true
OpenSource=true
Freeware=true
CommercialUse=false
[Version]
PackageVersion=0.0.0.0
DisplayVersion= Development Test 1
[Control]
Icons=1
Start=javaw.exe portablejEdit.exe
But then I think I also somehow need some portablejEdit.ini like this?
[Launch]
ProgramExecutable=javaw.exe
CommandLineArguments=-Duser.home="%PortableApps.comDocuments%\" -Xmx1024m -jar "%PAL:AppDir%\jEdit"
WorkingDirectory="%PortableApps.comDocuments%\"
WaitForProgram=true
WaitForOtherInstances=false
[Activate]
Java=require
Registry=false
[FileWrite1]
Type=Replace
But how are they connected? I don't fully understand (yet) the documentation. Is there really no quick "How To"?
First your questions:
App\Appinfo.ini is the place for informational data regarding the application, as well as data necessary for the PortableApps Platform to display and run the app.
App\Launcher\AppNamePortable.ini is where data specific to making the app portable goes.
Both files are required for a proper PortableApps package.
There is no quick "How To" to making a PortableApp because there is no quick way to learn it. There is a bit of a learning curve involved, but there are a bunch of us here with experience in making PortableApps who are more than willing to help out when we can. The easiest way to learn is to look at existing apps and compare them with the documentation to understand what they are doing. Then have a go at making something easy(ish) portable, and keep reading the docs while you do. Then read the docs some more and eventually you will get the hang of it. I still consult the documentation on a regular basis, because there is always something you will forget no matter how much you read them (unless you have a photographic memory, which I know I don't).
Now on to your package. There are a few issues I can see:
appinfo.ini
Start=jEditPortable.exe
AppNamePortable.ini
-jar="%PAL:AppDir%\jEdit\jEdit.jar"
) - this is the other major thing stopping your app from working.WaitForProgram=true
andRegistry=false
- these are the default values so don't need to be setWaitForOtherInstances=false
unless you are absolutely sure the app can handle itIf you want to check out another Java app to see how it is done, I have Makagiga Portable in the beta test sub-forum (there are no official Java apps yet).
Thanks for your Help!
I think I made it. Will have to add my favourite plugins in order to see which files I need to add there for rewrites.
Glad to help.
Also I just noticed that jEdit is open source under the GPL, so you can mark it as
CommercialUse=true
.