mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-10 17:08:39 +00:00
27 lines
528 B
Bash
Executable File
27 lines
528 B
Bash
Executable File
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
|
|
NAME_DMG="${NAME}.app"
|
|
echo $NAME_DMG
|
|
create-dmg $NAME_DMG
|
|
|
|
VERSION=`mdls -raw -name kMDItemVersion ${NAME}.app`
|
|
|
|
echo $VERSION
|
|
ditto -c -k --sequesterRsrc --keepParent "${NAME}.app" "${NAME}v${VERSION}.zip"
|