macoc/scripts/common.sh
root 009c7e5a33
Some checks failed
macoc macOS / build (push) Has been cancelled
feat: brand macoc add icon stable restart scripts and Forgejo CI
2026-10-26 00:22:35 +03:00

18 lines
468 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
APP_NAME=macoc
BUNDLE_ID=dev.local.Capswitch
APP_PATH="$ROOT/build/macoc.app"
SOURCE_ICON="$ROOT/Resources/IconSource.jpg"
DIST_PATH="$ROOT/dist"
if [[ "$(uname -s)" == Darwin ]]; then IS_MACOS=1; else IS_MACOS=0; fi
macos_only() {
if [[ "$IS_MACOS" != 1 ]]; then
echo "SKIP: this task requires macOS with Apple Command Line Tools."
exit 0
fi
}