2025-07-30 02:01:25 +00:00
|
|
|
#!/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
|
|
|
|
|
|
2025-07-30 16:24:08 +00:00
|
|
|
security find-identity -p codesigning -v
|
2025-07-30 03:19:53 +00:00
|
|
|
xcodebuild build -configuration Release ARCHS="$2"
|
2025-07-30 02:01:25 +00:00
|
|
|
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"
|
2025-09-17 17:07:55 +00:00
|
|
|
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"
|