- Thu Jul 07, 2005 10:23 pm
#43970
... I have to build OS x installers at work, so I was looking into creating a real package installer for Maxwell. While doing this, I was researching the ways to set environment variables, and it turns out, that it is much easier than in the Readme. Reminded me of that saying: "Those who don't know Unix are condemned to reinvent it - badly"
This procedure avoids to bluntly overwrite settings from other applications like the current procedure does. Overwriting an existing environment.plist means that after installing Maxwell *other* applications get into problems - which is a big NONO!
The good thing is that this method can be executed as a shell script, which means that a nice package installer is near.
In a later installer I think that the path should be adapted to have a real folder. I hope to get the application path from an installer variable, so the user can choose where to install Maxwell at will
Copy the application and set up the environment
1. Drag the Maxwell application into your Applications folder
2. Open the Terminal from the Applications > Utilities folder, and issue the following two commands. Press the enter key after each line:
defaults write ~/.MacOSX/environment MAXWELL_ROOT "/Applications/maxwell.app/Contents/MacOS/"
env MAXWELL_ROOT="/Applications/maxwell.app/Contents/MacOS/"
The "/.MasOSX" directory is created automatically if it doesn't exist.
Also there is no need to log out and log in to set the environment variable.
Create and install the License file
1. Open TextEdit from the Applications folder
2. Create a new file, and convert it to pure Text ( cmd+shift+T )
3. Now paste your name, organization and serial. The correct format is:
NAME
ORGANIZATION
XXXXX-TTTTT-AAAAA-RRRRR
It is just three lines, no leading spaces or spaces in between. If you have problems with the license, then please double check this first!
4. Save it as license.txt.
5. Go to /Applications and ctrl-click on maxwell to show the Finder context menu. In the context menu chooses: "Show package contents".
6. In the windows that opens now navigate to Contents / MacOS and copy your license.txt there.
That's it!
The text for this can be downloaded here:
http://klausbusse.de/Temp/Maxwell/Readmefirst.zip
Hope it helps
Kabe
This procedure avoids to bluntly overwrite settings from other applications like the current procedure does. Overwriting an existing environment.plist means that after installing Maxwell *other* applications get into problems - which is a big NONO!
The good thing is that this method can be executed as a shell script, which means that a nice package installer is near.
In a later installer I think that the path should be adapted to have a real folder. I hope to get the application path from an installer variable, so the user can choose where to install Maxwell at will
Copy the application and set up the environment
1. Drag the Maxwell application into your Applications folder
2. Open the Terminal from the Applications > Utilities folder, and issue the following two commands. Press the enter key after each line:
defaults write ~/.MacOSX/environment MAXWELL_ROOT "/Applications/maxwell.app/Contents/MacOS/"
env MAXWELL_ROOT="/Applications/maxwell.app/Contents/MacOS/"
The "/.MasOSX" directory is created automatically if it doesn't exist.
Also there is no need to log out and log in to set the environment variable.
Create and install the License file
1. Open TextEdit from the Applications folder
2. Create a new file, and convert it to pure Text ( cmd+shift+T )
3. Now paste your name, organization and serial. The correct format is:
NAME
ORGANIZATION
XXXXX-TTTTT-AAAAA-RRRRR
It is just three lines, no leading spaces or spaces in between. If you have problems with the license, then please double check this first!
4. Save it as license.txt.
5. Go to /Applications and ctrl-click on maxwell to show the Finder context menu. In the context menu chooses: "Show package contents".
6. In the windows that opens now navigate to Contents / MacOS and copy your license.txt there.
That's it!
The text for this can be downloaded here:
http://klausbusse.de/Temp/Maxwell/Readmefirst.zip
Hope it helps
Kabe