mirror of
https://github.com/sindresorhus/touch-bar-simulator
synced 2024-12-05 01:59:09 +00:00
23 lines
374 B
Text
23 lines
374 B
Text
|
#!/bin/bash
|
||
|
|
||
|
NAME='Touch Bar Simulator'
|
||
|
|
||
|
|
||
|
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"
|