changes with plugin Info.plist

Jesús A. Álvarez 2016-06-06 15:51:50 +02:00
parent d75f09205b
commit 4f06245abc

@ -25,9 +25,11 @@ Add it to the Xcode project as a group under `Mini vMac/Emulator Bundles`. Unmar
In the `Copy Bundle Resources` phase of the new target, remove the resources (only icon PNGs for now) from the old target, and add the new ones.
### Fix `Info.plist` path
![screenshot](http://i.imgur.com/cpHysaz.png)
![screenshot](http://i.imgur.com/dFyHPyR.png)
In build settings, change the `Info.plist file` setting to `$(SRCROOT)/Mini vMac/$(PRODUCT_NAME)/Info.plist`.
When duplicating the target, Xcode will create a new `Info.plist` for it, but we want to use the shared one and run it through the preprocessor:
* Delete the duplicate Info.plist (`something copy-Info.plist`) file from the project.
* In build settings, change the `Info.plist file` setting to `$(SRCROOT)/Mini vMac/PlugIn-Info.plist`.
### Add to app
![screenshot](http://i.imgur.com/mvkehBI.png)
@ -37,4 +39,4 @@ In the Mini vMac target's `Build Phases`, add the new framework to the `Embed Fr
### Customise
Now you can change the `EMCONFIG.h` and `CNFGGLOB.h` for the new bundle, and the files from mnvm_core it should compile. The files generated by the Mini vMac build system are helpful for figuring this out.
Don't forget to change the display name and get info string in the `Info.plist` file, and the icon!
To change the text shown in the Settings list of machines, edit the `MNVMBundleDisplayName` and `MNVMBundleGetInfoString` macros in `CNFGGLOB.h`, they will be inserted into the `Info.plist` by the preprocessor, so they shouldn't have quotes around them, or they will show up with quotes in the UI. You can also change the Icon.