mirror of
https://github.com/jayanezj/traccar-client-macos.git
synced 2026-11-05 03:00:46 +01:00
feat: add native macOS menu-bar application shell (#1)
This commit is contained in:
28 files changed
+695
No files matched your search
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
build_root="${1:?Usage: scripts/build.sh /absolute/path/to/external/build-directory [Debug|Release]}"
|
||||
configuration="${2:-Debug}"
|
||||
case "$build_root" in
|
||||
/*) ;;
|
||||
*) echo "The build directory must be an absolute path." >&2; exit 2 ;;
|
||||
esac
|
||||
case "$configuration" in
|
||||
Debug|Release) ;;
|
||||
*) echo "Configuration must be Debug or Release." >&2; exit 2 ;;
|
||||
esac
|
||||
repo_root="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
mkdir -p "$build_root"
|
||||
|
||||
exec xcodebuild \
|
||||
-project "$repo_root/TraccarClient.xcodeproj" \
|
||||
-scheme TraccarClient \
|
||||
-configuration "$configuration" \
|
||||
-destination 'platform=macOS,arch=arm64' \
|
||||
-derivedDataPath "$build_root/DerivedData" \
|
||||
"CLANG_MODULE_CACHE_PATH=$build_root/ModuleCache" \
|
||||
"SWIFT_MODULE_CACHE_PATH=$build_root/ModuleCache" \
|
||||
build
|
||||
Reference in new issue
Block a user