Fixed building DMG archive on Mac OS X
authorSam Lantinga <slouken@libsdl.org>
Wed, 19 Jun 2019 10:24:19 -0700
changeset 92704bffe28ef12
parent 926 d6c9518fb5ee
child 928 1c557e8ac98f
Fixed building DMG archive on Mac OS X
Xcode/SDL_mixer.xcodeproj/project.pbxproj
     1.1 --- a/Xcode/SDL_mixer.xcodeproj/project.pbxproj	Fri Jan 04 22:02:19 2019 -0800
     1.2 +++ b/Xcode/SDL_mixer.xcodeproj/project.pbxproj	Wed Jun 19 10:24:19 2019 -0700
     1.3 @@ -495,6 +495,7 @@
     1.4  			developmentRegion = English;
     1.5  			hasScannedForEncodings = 1;
     1.6  			knownRegions = (
     1.7 +				English,
     1.8  				en,
     1.9  			);
    1.10  			mainGroup = 0867D691FE84028FC02AAC07 /* SDL_mixerFramework */;
    1.11 @@ -572,7 +573,7 @@
    1.12  			);
    1.13  			runOnlyForDeploymentPostprocessing = 0;
    1.14  			shellPath = /bin/sh;
    1.15 -			shellScript = "PRODUCT_NAME=SDL2_mixer\n\n# Sign framework\nif [ \"$SDL_CODESIGN_IDENTITY\" != \"\" ]; then\n    codesign --force --deep --sign \"$SDL_CODESIGN_IDENTITY\" $TARGET_BUILD_DIR/$PRODUCT_NAME.framework/Versions/A\nfi\n\n# clean up the framework, remove headers, extra files\nmkdir -p build/dmg-tmp\nxcrun CpMac -r $TARGET_BUILD_DIR/$PRODUCT_NAME.framework build/dmg-tmp/\ncp pkg-support/resources/ReadMe.txt build/dmg-tmp\n\n# remove the .DS_Store files if any (we may want to provide one in the future for fancy .dmgs)\nrm -rf build/dmg-tmp/.DS_Store\n\n# create the dmg\nhdiutil create -ov -fs HFS+ -volname $PRODUCT_NAME -srcfolder build/dmg-tmp build/$PRODUCT_NAME.dmg\n\n# clean up\nrm -rf build/dmg-tmp";
    1.16 +			shellScript = "PRODUCT_NAME=SDL2_mixer\n\n# Sign framework\nif [ \"$SDL_CODESIGN_IDENTITY\" != \"\" ]; then\n    codesign --force --deep --sign \"$SDL_CODESIGN_IDENTITY\" $TARGET_BUILD_DIR/$PRODUCT_NAME.framework/Versions/A || exit $?\nfi\n\n# clean up the framework, remove headers, extra files\nmkdir -p build/dmg-tmp\ncp -r $TARGET_BUILD_DIR/$PRODUCT_NAME.framework build/dmg-tmp/\ncp pkg-support/resources/ReadMe.txt build/dmg-tmp\n\n# remove the .DS_Store files if any (we may want to provide one in the future for fancy .dmgs)\nrm -rf build/dmg-tmp/.DS_Store\n\n# create the dmg\nhdiutil create -ov -fs HFS+ -volname $PRODUCT_NAME -srcfolder build/dmg-tmp build/$PRODUCT_NAME.dmg\n\n# clean up\nrm -rf build/dmg-tmp\n";
    1.17  		};
    1.18  /* End PBXShellScriptBuildPhase section */
    1.19