From 0e07f714581f3090c92d7e13c2fe893875384f27 Mon Sep 17 00:00:00 2001 From: Toxblh Date: Fri, 13 Apr 2018 22:14:38 +0100 Subject: [PATCH] Scripts for create dmg --- .gitignore | 1 + build.sh | 20 +++++++++++++++++++- export-options.plist | 10 ++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 export-options.plist diff --git a/.gitignore b/.gitignore index 161179b..0072ddc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ ## Build generated build/ DerivedData/ +Release/ ## Various settings *.pbxuser diff --git a/build.sh b/build.sh index e29f92a..6bf55d8 100755 --- a/build.sh +++ b/build.sh @@ -1 +1,19 @@ -xcodebuild -project MTMR.xcodeproj -target MTMR -configuration Release +NAME='MTMR' + +rm -r Release 2>/dev/null + +xcodebuild archive \ + -scheme "$NAME" \ + -archivePath Release/App.xcarchive + +xcodebuild \ + -exportArchive \ + -archivePath Release/App.xcarchive \ + -exportOptionsPlist export-options.plist \ + -exportPath Release + +cd Release +rm -r App.xcarchive + +# Prerequisite: npm i -g create-dmg +create-dmg "${NAME}.app" diff --git a/export-options.plist b/export-options.plist new file mode 100644 index 0000000..9d0bc63 --- /dev/null +++ b/export-options.plist @@ -0,0 +1,10 @@ + + + + + teamID + D6D8BR2QNB + method + mac-application + +