Files
tunarr/scripts/bundle-macos.sh
Christian Benincasa e293f4cf57 feat(macos): add proper macOS wrapper app (#1290)
Still missing build process + assembly of bundle
2025-07-29 22:01:25 -04:00

22 lines
487 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
xcodebuild build
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"
chmod +x "$APP_NAME/Contents/MacOS/tunarr-macos"