Commit ffe29670 authored by Bruno Coudoin's avatar Bruno Coudoin

macosx, updated build instructions

This is the instructions that I used to build the 0.43 version that was
accepted on the Apple app store.
parent a949fa40
......@@ -19,11 +19,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.41</string>
<string>0.43</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.41</string>
<string>0.43</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
......
iOS build instruction.
MacOSX build instruction.
copy the following files at the root dir
cp config.h ../..
......@@ -17,11 +17,14 @@ cd build-macosx
~/Qt/5.5/clang_64/bin/qmake -config release ../gcompris.pro
make
codesign --deep -s "Mac Developer: Bruno Coudoin" --entitlements ../platforms/macosx/gcompris.entitlements gcompris.app
codesign --deep -s "3rd Party Mac Developer Application: Bruno Coudoin" --entitlements ../platforms/macosx/gcompris.entitlements gcompris.app
/Users/bdoin/Qt/5.5/clang_64//bin/macdeployqt gcompris.app -executable=/Users/bdoin/Projets/gcompris/build-macosx/gcompris.app/Contents/MacOS/gcompris -always-overwrite -qmldir=/Users/bdoin/Projets/gcompris/src -codesign="Mac Developer: Bruno Coudoin" -verbose=2
/Users/bdoin/Qt/5.5/clang_64//bin/macdeployqt gcompris.app -executable=/Users/bdoin/Projets/gcompris/build-macosx/gcompris.app/Contents/MacOS/gcompris -always-overwrite -qmldir=/Users/bdoin/Projets/gcompris/src -codesign="3rd Party Mac Developer Application: Bruno Coudoin" -verbose=2
productbuild --component gcompris.app /Applications --sign "3rd Party Mac Developer Installer: Bruno Coudoin" gcompris.pkg
codesign --deep -s "3rd Party Mac Developer Application: Bruno Coudoin" gcompris.app/Contents/Resources/translations/*
codesign --deep -s "3rd Party Mac Developer Application: Bruno Coudoin" gcompris.app/Contents/Resources/rcc/*
make product
To test it:
sudo installer -store -pkg gcompris.pkg -target /
......
/* Version number of package */
#define VERSION "0.41"
#define VERSION "0.43"
/* Folder where rccs and translations are installed */
#define GCOMPRIS_DATA_FOLDER ""
#define GCOMPRIS_DATA_FOLDER "../Resources"
/* GCompris for android, gcompris-qt for others */
#define GCOMPRIS_APPLICATION_NAME "gcompris-qt"
/* Compressed audio format */
......
......@@ -8,7 +8,7 @@ QT += qml quick gui multimedia network xmlpatterns svg xml core
APPCERT = "3rd Party Mac Developer Application: Bruno Coudoin"
INSTALLERCERT = "3rd Party Mac Developer Installer: Bruno Coudoin"
BUNDLEID = net.gcompris
ENTITLEMENTS = gcompris.entitlements
ENTITLEMENTS = platform/macosx/gcompris.entitlements
QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO
......@@ -58,12 +58,12 @@ codesign.commands += macdeployqt $${TARGET}.app;
#codesign -s "$APPCERT" -i $BUNDLEID $${TARGET}.app/Contents/PlugIns/imageformats/libqjpeg.dylib
# Sign the application bundle, using the provided entitlements
codesign.commands += codesign -f -s $${APPCERT} -v entitlements $${ENTITLEMENTS} $${TARGET}.app;
codesign.commands += codesign -f -s \"$${APPCERT}\" -v entitlements $${ENTITLEMENTS} $${TARGET}.app;
product.depends += all
# Build the product package
product.commands += productbuild --component $${TARGET}.app /Applications --sign $${INSTALLERCERT} $${TARGET}.pkg;
product.commands += productbuild --component $${TARGET}.app /Applications --sign \"$${INSTALLERCERT}\" $${TARGET}.pkg;
QMAKE_EXTRA_TARGETS += codesign product copyfiles
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment