1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-09 00:38:37 +00:00

Scripts for create dmg

This commit is contained in:
Toxblh 2018-04-13 22:14:38 +01:00
parent 7100a6e6b8
commit 0e07f71458
3 changed files with 30 additions and 1 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
## Build generated
build/
DerivedData/
Release/
## Various settings
*.pbxuser

View File

@ -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"

10
export-options.plist Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>teamID</key>
<string>D6D8BR2QNB</string>
<key>method</key>
<string>mac-application</string>
</dict>
</plist>