GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — btc-menu-macos/scripts/build_app.sh at main · javascripto/btc-menu-macos Expand file tree/ Copy pathbuild_app.shMore file actions executable file ·77 lines (67 loc) · 2.12 KB / Copy pathbuild_app.shFile metadata and controlsexecutable file ·77 lines (67 loc) · 2.12 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 #!/bin/zsh set -euo pipefail ROOT_DIR="${0:A:h:h}" BUILD_DIR="$ROOT_DIR/.build/release" APP_NAME="BTCMenu" APP_DIR="$ROOT_DIR/dist/$APP_NAME.app" CONTENTS_DIR="$APP_DIR/Contents" MACOS_DIR="$CONTENTS_DIR/MacOS" RESOURCES_DIR="$CONTENTS_DIR/Resources" ICON_WORK_DIR="$ROOT_DIR/.build/app-icon" ICON_ICNS="$ICON_WORK_DIR/BTCMenu.icns" ICON_SOURCE="$ROOT_DIR/scripts/generate_app_icon.swift" echo "==> Building Swift executable" cd "$ROOT_DIR" export CLANG_MODULE_CACHE_PATH="$ROOT_DIR/.build/clang-module-cache" swift build --disable-sandbox -c release if [[ ! -f "$ICON_ICNS" || "$ICON_SOURCE" -nt "$ICON_ICNS" ]]; then echo "==> Generating app icon" mkdir -p "$ICON_WORK_DIR" swift "$ICON_SOURCE" "$ICON_ICNS" else echo "==> Reusing app icon" fi echo "==> Creating app bundle" rm -rf "$APP_DIR" mkdir -p "$MACOS_DIR" "$RESOURCES_DIR" cp "$BUILD_DIR/$APP_NAME" "$MACOS_DIR/$APP_NAME" chmod +x "$MACOS_DIR/$APP_NAME" cp "$ICON_ICNS" "$RESOURCES_DIR/BTCMenu.icns" cat > "$CONTENTS_DIR/Info.plist" <<'PLIST' <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>BTCMenu</string> <key>CFBundleIdentifier</key> <string>com.yuri.btcmenu</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleIconFile</key> <string>BTCMenu</string> <key>CFBundleName</key> <string>BTCMenu</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>1.0.0</string> <key>CFBundleVersion</key> <string>1</string> <key>LSMinimumSystemVersion</key> <string>13.0</string> <key>LSUIElement</key> <true/> <key>NSHighResolutionCapable</key> <true/> </dict> </plist> PLIST printf 'APPL????' > "$CONTENTS_DIR/PkgInfo" if command -v codesign >/dev/null 2>&1; then echo "==> Applying ad-hoc signature" codesign --force --deep --sign - "$APP_DIR" fi echo "Built app bundle at: $APP_DIR" |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |