From c5d40cce908fa70589a5ac52493ca557e3db2c4b Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 18 Oct 2016 15:16:56 +0000 Subject: [PATCH] #1340: fix appstore uploads: * keep only one binary in MacOS * use the same bundleid for all binaries (but different executable tag) git-svn-id: https://xpra.org/svn/Xpra/trunk@14193 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- osx/Info-template.plist | 2 +- osx/make-appstore-PKG.sh | 25 +++++++++++++++---------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/osx/Info-template.plist b/osx/Info-template.plist index e9e10502a6..ab55ec4003 100644 --- a/osx/Info-template.plist +++ b/osx/Info-template.plist @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion English CFBundleExecutable - Launcher + %EXECUTABLE% CFBundleDisplayName Xpra CFBundleName diff --git a/osx/make-appstore-PKG.sh b/osx/make-appstore-PKG.sh index 93f146b92f..e784121970 100755 --- a/osx/make-appstore-PKG.sh +++ b/osx/make-appstore-PKG.sh @@ -40,19 +40,24 @@ echo "Making $PKG_FILENAME" #move all the scripts to Resources/scripts: mkdir appstore/Xpra.app/Contents/Resources/scripts -rm -f appstore/Xpra.app/Contents/MacOS/* for x in Bug_Report GTK_info Network_info Python Xpra Launcher Config_info Keyboard_Tool OpenGL_check PythonExecWrapper Encoding_info Keymap_info Path_info Version_info Shadow Feature_info Manual PowerMonitor Webcam_Test GStreamer_info NativeGUI_info Print Websockify; do mv "appstore/Xpra.app/Contents/Helpers/$x" "appstore/Xpra.app/Contents/Resources/scripts/" - if [ "$x" != "PythonExecWrapper" ]; then - if [ "$x" == "Launcher" ]; then - gcc -arch i386 -o "appstore/Xpra.app/Contents/MacOS/$x" "./Shell-wrapper.c" - else - cat ./Info-template.plist | sed "s+%BUNDLEID%+org.xpra.$x+g" > ./appstore/temp.plist - gcc -arch i386 -o "appstore/Xpra.app/Contents/MacOS/$x" "./Shell-wrapper.c" -sectcreate __TEXT __info_plist ./appstore/temp.plist - rm appstore/temp.plist - fi + if [ "$x" != "PythonExecWrapper" ] && [ "$x" != "Launcher" ]; then + cp ./Info-template.plist ./appstore/temp.plist + #sed -i '' -e "s+%BUNDLEID%+org.xpra.$x+g" ./appstore/temp.plist + sed -i '' -e "s+%BUNDLEID%+org.xpra.Xpra+g" ./appstore/temp.plist + sed -i '' -e "s+%EXECUTABLE%+$x+g" ./appstore/temp.plist + sed -i '' -e "s+%VERSION%+$VERSION+g" ./appstore/temp.plist + sed -i '' -e "s+%REVISION%+$REVISION$REV_MOD+g" ./appstore/temp.plist + sed -i '' -e "s+%BUILDNO%+$BUILDNO+g" ./appstore/temp.plist + gcc -arch i386 -o "appstore/Xpra.app/Contents/Helpers/$x" "./Shell-wrapper.c" -sectcreate __TEXT __info_plist ./appstore/temp.plist + rm appstore/temp.plist fi done +#keep only one binary in MacOS: +rm -f appstore/Xpra.app/Contents/MacOS/* +gcc -arch i386 -o "appstore/Xpra.app/Contents/MacOS/Launcher" "./Shell-wrapper.c" + echo "MacOS:" ls -la@ appstore/Xpra.app/Contents/MacOS echo @@ -64,7 +69,7 @@ rm appstore/Xpra.app/Contents/Helpers/gst* CODESIGN_ARGS="--force --verbose --sign \"3rd Party Mac Developer Application\" --entitlements ./Xpra.entitlements" eval codesign $CODESIGN_ARGS appstore/Xpra.app/Contents/Helpers/* -EXES=`find appstore/Xpra.app/Contents/MacOS -type f | grep -v "Launcher" | xargs` +EXES=`find appstore/Xpra.app/Contents/MacOS -type f | xargs` eval codesign $CODESIGN_ARGS $EXES CODESIGN_ARGS="--force --verbose --sign \"3rd Party Mac Developer Application\" --entitlements ./Inherit.entitlements"