Use lowercase puter branding
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
set -euo pipefail
|
||||
|
||||
PROJECT_DIR="${0:A:h:h}"
|
||||
APP_DIR="$PROJECT_DIR/dist/Puter.app"
|
||||
ICON_SOURCE="${PUTER_ICON_SOURCE:-$PROJECT_DIR/Puter.icon}"
|
||||
APP_DIR="$PROJECT_DIR/dist/puter.app"
|
||||
ICON_SOURCE="${PUTER_ICON_SOURCE:-$PROJECT_DIR/puter.icon}"
|
||||
STAGING_ROOT="$(mktemp -d /tmp/puter-build.XXXXXX)"
|
||||
STAGED_APP="$STAGING_ROOT/Puter.app"
|
||||
STAGED_APP="$STAGING_ROOT/puter.app"
|
||||
CONTENTS_DIR="$STAGED_APP/Contents"
|
||||
|
||||
trap '/bin/rm -rf -- "$STAGING_ROOT"' EXIT
|
||||
@@ -14,9 +14,9 @@ cd "$PROJECT_DIR"
|
||||
swift build -c release
|
||||
|
||||
mkdir -p "$CONTENTS_DIR/MacOS" "$CONTENTS_DIR/Resources"
|
||||
cp "$PROJECT_DIR/.build/release/Puter" "$CONTENTS_DIR/MacOS/Puter"
|
||||
cp "$PROJECT_DIR/.build/release/puter" "$CONTENTS_DIR/MacOS/puter"
|
||||
cp "$PROJECT_DIR/Resources/Info.plist" "$CONTENTS_DIR/Info.plist"
|
||||
chmod +x "$CONTENTS_DIR/MacOS/Puter"
|
||||
chmod +x "$CONTENTS_DIR/MacOS/puter"
|
||||
|
||||
SMC_SOURCE="/Applications/Stats.app/Contents/Resources/smc"
|
||||
if [[ -x "$SMC_SOURCE" ]]; then
|
||||
@@ -31,14 +31,14 @@ if [[ -d "$ICON_SOURCE" ]]; then
|
||||
--compile "$CONTENTS_DIR/Resources" \
|
||||
--platform macosx \
|
||||
--minimum-deployment-target 14.0 \
|
||||
--app-icon Puter \
|
||||
--app-icon puter \
|
||||
--output-partial-info-plist "$CONTENTS_DIR/Resources/IconInfo.plist" >/dev/null
|
||||
|
||||
[[ -s "$CONTENTS_DIR/Resources/Assets.car" ]] || {
|
||||
print -u2 "Icon Composer did not produce an Assets.car file"
|
||||
exit 1
|
||||
}
|
||||
[[ "$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIconName' "$CONTENTS_DIR/Info.plist")" == "Puter" ]] || {
|
||||
[[ "$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIconName' "$CONTENTS_DIR/Info.plist")" == "puter" ]] || {
|
||||
print -u2 "CFBundleIconName must reference the Icon Composer asset"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user