mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
559 B
22 lines
559 B
#! /bin/bash |
|
|
|
SCRIPT_FOLDER=$(dirname ${BASH_SOURCE[0]}) |
|
REPO_ROOT=$(realpath "$SCRIPT_FOLDER/../..") |
|
|
|
APP_NAME="$REPO_ROOT/ErsatzTV.app" |
|
PUBLISH_OUTPUT_DIRECTORY="$REPO_ROOT/publish/." |
|
|
|
if [ -d "$APP_NAME" ] |
|
then |
|
rm -rf "$APP_NAME" |
|
fi |
|
|
|
cd "$REPO_ROOT/ErsatzTV-macOS" || exit |
|
xcodebuild build |
|
cd "$REPO_ROOT" || exit |
|
cp -R "$REPO_ROOT/ErsatzTV-macOS/build/Release/ErsatzTV-macOS.app" "$APP_NAME" |
|
|
|
cp -a "$PUBLISH_OUTPUT_DIRECTORY" "$APP_NAME/Contents/MacOS" |
|
|
|
chmod +x "$APP_NAME/Contents/MacOS/ErsatzTV" |
|
chmod +x "$APP_NAME/Contents/MacOS/ErsatzTV-macOS"
|
|
|