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 + +