Skip to content
Source
Sign inSign up
samwillis/jerry
Open History to see the last commit

package.sh

13 lines881 Bytes

1#!/bin/zsh
2set -eu
3task_root="$(cd "$(dirname "$0")/.." && pwd)"
4task_arch="$(uname -m)"
5xcodebuild -project "$task_root/Jerry.xcodeproj" \
6 -scheme Jerry -configuration Release -destination "platform=macOS,arch=$task_arch" \
7 -derivedDataPath "$task_root/build/Release" ONLY_ACTIVE_ARCH=YES CODE_SIGNING_ALLOWED=NO build
8mkdir -p "$task_root/build/Distribution"
9/usr/bin/ditto "$task_root/build/Release/Build/Products/Release/Jerry.app" "$task_root/build/Distribution/Jerry.app"
10/usr/bin/ditto -c -k --sequesterRsrc --keepParent "$task_root/build/Distribution/Jerry.app" "$task_root/build/Distribution/Jerry-local-$task_arch.zip"
11print "Local prototype: $task_root/build/Distribution/Jerry.app"
12print "Archive: $task_root/build/Distribution/Jerry-local-$task_arch.zip"
13print "Unsigned local build. Developer ID signing and notarisation are required before public distribution."