A little tool Joe and I made to set Info.plist information from within a PureBasic source.Configure Tools in PureBasic
- Open "Configure Tools..."
- Select "New"
- Commandline: open
- Arguments: /Applications/plistTool.app --args "%COMPILEFILE" "%EXECUTABLE" "%PATH"
- Name: plist Tool
- Event to trigger the tool: After Compile/Run
- Select - "Wait until tool quits"
- Select - "Hide Tool from the Main menu"
- Click "Ok"
If you wish, you can add the tool a second time with
Event to trigger the tool: After Create ExecutableDownload plistTool v1.1 (Developer signed for OS X 10.6+)Usage
Within the PureBasic source code, you can use ;@@
to set something in the Info.plist file and ;@R
to embed a resource.
By default the tool shows a window with information. If you don't want to show this, you can use;@@ DisableDebugWindow
This doesn't disable the PureBasic debug window, only the window of the tool.Example
;@@ LSMinimumSystemVersion = 10.6
MessageRequester("Test", "Test application")
To set something other than a string, you can use XML notation like this
The advantage of this tool is that you don't have to modify the Info.plist file manually after creation.
It allows you to use the debug feature of PureBasic with the Info.plist settings set as you wish and resources included.ScreenShot