25 lines
1005 B
Bash
Executable File
25 lines
1005 B
Bash
Executable File
#!/bin/bash
|
|
# Personal Release build. NOT a distribution build.
|
|
#
|
|
# Upstream's project settings enable the hardened runtime with no Team ID,
|
|
# which (ad-hoc signed) makes dyld's library validation kill the app over its
|
|
# own embedded MP42Foundation.framework. ENABLE_HARDENED_RUNTIME=NO restores
|
|
# the Debug-style behavior that actually runs locally. Part of the repo so
|
|
# every machine gets the same local-release recipe.
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
|
|
|
xcodebuild -project "$ROOT/MP42Foundation/MP42Foundation.xcodeproj" \
|
|
-scheme MP42Foundation -configuration Release build \
|
|
SYMROOT="$ROOT/MP42Foundation/Build/Products" \
|
|
ENABLE_HARDENED_RUNTIME=NO
|
|
|
|
xcodebuild -project "$ROOT/Subler.xcodeproj" \
|
|
-scheme Subler -configuration Release build \
|
|
SYMROOT="$ROOT/Build/Products" \
|
|
ENABLE_HARDENED_RUNTIME=NO
|
|
|
|
rm -r "/Applications/SublerMKV.app"
|
|
cp -ca "$ROOT/Build/Products/Release/SublerMKV.app" /Applications/
|
|
echo "Done: $ROOT/Build/Products/Release/SublerMKV.app"
|