mirror of
https://github.com/chrisbenincasa/tunarr
synced 2026-04-21 21:37:40 +00:00
23 lines
No EOL
690 B
Bash
Executable file
23 lines
No EOL
690 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
BINARY_NAME="$1"
|
|
SCRIPT_FOLDER=$(dirname "${BASH_SOURCE[0]}")
|
|
REPO_ROOT=$(realpath "$SCRIPT_FOLDER/..")
|
|
APP_NAME="$REPO_ROOT/Tunarr.app"
|
|
|
|
if [ -d "$APP_NAME" ]
|
|
then
|
|
rm -rf "$APP_NAME"
|
|
fi
|
|
|
|
pushd "$REPO_ROOT/macos/Tunarr" || exit
|
|
|
|
security find-identity -p codesigning -v
|
|
xcodebuild build -configuration Release ARCHS="$2"
|
|
cp -R "$REPO_ROOT/macos/Tunarr/build/Release/Tunarr.app" "$APP_NAME"
|
|
|
|
popd || exit
|
|
|
|
cp -a "$REPO_ROOT/server/bin/$BINARY_NAME" "$APP_NAME/Contents/MacOS/tunarr-macos"
|
|
cp -a "$REPO_ROOT/server/bin/meilisearch-macos-$2" "$APP_NAME/Contents/MacOS/meilisearch"
|
|
chmod +x "$APP_NAME/Contents/MacOS/tunarr-macos" "$APP_NAME/Contents/MacOS/meilisearch" |