-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
869 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# we are in Resources/Deployment/macOS/ -> change directory to project root | ||
cd ../../../ | ||
|
||
# set convenience variables | ||
JUCEDir=submodules/JUCE | ||
ProjucerPath="$JUCEDir"/extras/Projucer/Builds/MacOSX | ||
ProjucerBinPath="$ProjucerPath"/build/Release/Projucer.app/Contents/MacOS/Projucer | ||
JucerProjectPath=AES70_OCP1_StringGenerator.jucer | ||
XCodeProjectPath=Builds/MacOSX/AES70_OCP1_StringGenerator.xcodeproj | ||
|
||
# build projucer | ||
xcodebuild -project "$ProjucerPath"/Projucer.xcodeproj -configuration Release -jobs 8 | ||
|
||
# export projucer project | ||
"$ProjucerBinPath" --resave "$JucerProjectPath" | ||
|
||
# start building the project | ||
xcodebuild -project "$XCodeProjectPath" -configuration Release -jobs 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# we are in Resources/Deployment/macOS/ -> change directory to project root | ||
cd ../../../ | ||
|
||
# set convenience variables | ||
AppBundlePath=Builds/MacOSX/build/Release/AES70_OCP1_StringGenerator.app | ||
CreateDmgPath=submodules/create-dmg/create-dmg | ||
IconSetSourcePng=AES70_OCP1_StringGenerator.png | ||
LicensePath=LICENSE | ||
VolIconPath=Resources/Images/Iconset.icns | ||
DmgTargetPath=AES70_OCP1_StringGenerator.dmg | ||
DmgContentsCollectionPath=ContentsPath | ||
|
||
# create the icns from existing png | ||
cd Resources/Images | ||
chmod +x makeIconset.sh | ||
./makeIconset.sh "$IconSetSourcePng" | ||
cd ../../ | ||
|
||
# collect dmg contents | ||
test -d "$DmgContentsCollectionPath" && rm -r "$DmgContentsCollectionPath" | ||
mkdir "$DmgContentsCollectionPath" | ||
cp -r "$AppBundlePath" "$DmgContentsCollectionPath" | ||
ln -s /Applications "$DmgContentsCollectionPath"/Applications | ||
|
||
# create project disk image | ||
test -f "$DmgTargetPath" && rm "$DmgTargetPath" | ||
"$CreateDmgPath" --eula "$LicensePath" --window-size 565 245 --volicon "$VolIconPath" "$DmgTargetPath" "$DmgContentsCollectionPath" | ||
|
||
# cleanup | ||
test -d "$DmgContentsCollectionPath" && rm -r "$DmgContentsCollectionPath" | ||
test -f "$VolIconPath" && rm "$VolIconPath" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# we are in Resources/Deployment/macOS/ -> change directory to project root | ||
cd ../../../ | ||
|
||
# set external variables | ||
CodeSignCertName=$1 # e.g. "Developer ID Application: SomeIdentifier" | ||
|
||
echo "Using certificate $CodeSignCertName for codesigning." | ||
|
||
# set convenience variables | ||
AppBundlePath=Builds/MacOSX/build/Release | ||
CreateDmgPath=submodules/create-dmg/create-dmg | ||
DmgTargetPath=AES70_OCP1_StringGenerator.dmg | ||
|
||
# build the project and create dmg | ||
cd Resources/Deployment/macOS | ||
./build_project.sh | ||
./create_diskimage.sh | ||
cd ../../../ | ||
|
||
# codesign the disk image | ||
codesign --force --sign "$CodesignCertName" "$DmgTargetPath" | ||
|
||
# trigger notarization | ||
# (assumes that credentials are stored to keychain, e.g. with xcrun notarytool store-credentials APP_NOTARIZATION_CREDENTIALS_PROFILE --apple-id APPLE_ID --team-id TEAM_ID) | ||
xcrun notarytool submit --keychain-profile "APP_NOTARIZATION_CREDENTIALS_PROFILE" --wait "$DmgTargetPath" | ||
# staple the notarization to the artifact for offline operation | ||
xcrun stapler staple "$DmgTargetPath" |
Oops, something went wrong.