Files
byre/mac/deploy.sh
T

12 lines
511 B
Bash
Executable File

#!/bin/sh
set -eu
mac=$(cd "$(dirname "$0")" && pwd)
"$mac/package.sh"
"$mac/phone.sh"
rm -rf "$mac/.build/phone/iphoneos/export"
xcodebuild -exportArchive -archivePath "$mac/.build/phone/iphoneos/Byre.xcarchive" -exportOptionsPlist "$mac/phone/export.plist" -exportPath "$mac/.build/phone/iphoneos/export" -allowProvisioningUpdates
version=$(plutil -extract CFBundleShortVersionString raw "$mac/.build/Byre.app/Contents/Info.plist")
dmg=$mac/.build/release/$version/byre-$version.dmg
"$mac/install.sh" "$dmg"