DMG installer creation on Mac fails

113 views
Skip to first unread message

re6d...@gmail.com

unread,
Jun 3, 2013, 4:16:23 AM6/3/13
to firebre...@googlegroups.com
The prep script generated DMG installer build fails on me:

PhaseScriptExecution "CMake PostBuild Rules" /Users/macbookpro/Documents/src/Plugin/fbbuild/projects/FirstbeatUploaderPlugin/FireBreath.build/Debug/FirstbeatUploaderPlugin.build/Script-7CC333E8B54C435A81548B3F.sh
    cd /Users/macbookpro/Documents/src/Plugin/firebreath
    /bin/sh -c /Users/macbookpro/Documents/src/Plugin/fbbuild/projects/FirstbeatUploaderPlugin/FireBreath.build/Debug/FirstbeatUploaderPlugin.build/Script-7CC333E8B54C435A81548B3F.sh

echo "------------ CREATE DMG INSTALLER"
------------ CREATE DMG INSTALLER
/bin/cp -r /Users/macbookpro/Documents/src/Plugin/fbprojects/FirstbeatUploaderPlugin/Mac/dmg_template /Users/macbookpro/Documents/src/Plugin/fbbuild/projects/FirstbeatUploaderPlugin/Debug/dmg_template
/bin/cp -R /Users/macbookpro/Documents/src/Plugin/fbbuild/projects/FirstbeatUploaderPlugin/Debug/FirstbeatUploaderPlugin.plugin /Users/macbookpro/Documents/src/Plugin/fbbuild/projects/FirstbeatUploaderPlugin/Debug/dmg_template
cp: /Users/macbookpro/Documents/src/Plugin/fbbuild/projects/FirstbeatUploaderPlugin/Debug/FirstbeatUploaderPlugin.plugin: No such file or directory
make: *** [FirstbeatUploaderPlugin_buildpart_0] Error 1

There is no dir named FirstbeatUploaderPlugin.plugin, however there is a dir named npFirstbeatUploaderPlugin.plugin in the same place. Should I just manually rename and try again?

I dont't know if this is relevant to this but I modified the mac prep script prepmac.sh by changing

ARCH=-DCMAKE_OSX_ARCHITECTURES="${CMAKE_OSX_ARCHITECTURES:-i386;x86_64}"

into

ARCH=-DCMAKE_OSX_ARCHITECTURES="${CMAKE_OSX_ARCHITECTURES:-x86_64}"

to get a 64-bit build.


Richard Bateman

unread,
Jun 3, 2013, 12:05:44 PM6/3/13
to firebre...@googlegroups.com

From the error message, it's either not building the output file or the dmg script is trying to use the wrong filename.

Richard

--
 
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

re6d...@gmail.com

unread,
Jun 7, 2013, 4:05:24 AM6/7/13
to firebre...@googlegroups.com
There seems to be a bug with the plugin name handling in the DMG installer prep script. I tried to create DMG installer for the FBTestPlugin and it too failed with the above issue. The build script creates plugin with name npFBTestPlugin while the DMG installer script is looking for FBTestPlugin (both the plugin folder and the plugin binary itself).

re6d...@gmail.com

unread,
Jun 7, 2013, 6:18:22 AM6/7/13
to firebre...@googlegroups.com
Or am I doing something wrong or missing something?

I commented in the DMG intaller build in FBTestPlugin and created the FBTestPlugin project by running

firebreath/prepmac.sh firebreath/examples/FBTestPlugin fbbuild

and opening and complining the created project with xcode.

Richard Bateman

unread,
Jun 7, 2013, 11:47:53 AM6/7/13
to firebre...@googlegroups.com

Yeah; the naming of the output DMG changed, so I suspect the dmg creation script will need to be updated as well.  This shouldn't be hard, but it's not high on my priority list; it would be great if someone could do that and submit a pull request.

Richard

On Jun 7, 2013, at 2:05 , re6d...@gmail.com wrote:

There seems to be a bug with the plugin name handling in the DMG installer prep script. I tried to create DMG installer for the FBTestPlugin and it too failed with the above issue. The build script creates plugin with name npFBTestPlugin while the DMG installer script is looking for FBTestPlugin (both the plugin folder and the plugin binary itself).

re6d...@gmail.com

unread,
Jun 10, 2013, 3:56:25 AM6/10/13
to firebre...@googlegroups.com
In firebreath\fbgen\src\Mac\installer.cmake find and replace ${PLUGIN_NAME} with np${PLUGIN_NAME} or ${FBSTRING_PluginFileName} ?
Reply all
Reply to author
Forward
0 new messages