diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 415343e..e4ca942 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,16 +75,24 @@ jobs: sips -z $double $double internal/webui/assets/logo.png --out /tmp/icon.iconset/icon_${size}x${size}@2x.png >/dev/null done iconutil -c icns /tmp/icon.iconset -o /tmp/AppIcon.icns - - name: Assemble Bambu Profile Manager.app for both architectures + - name: Assemble Bambu Profile Manager (bpm).app for both architectures run: | version="${{ github.ref_name }}" version="${version#v}" for arch in arm64 amd64; do - # The .app folder itself is named "Bambu Profile Manager.app" - # (that's what shows in Launchpad/Spotlight/Finder) - the release - # asset's own filename stays the technical "BpmTray_..." for a - # stable download URL across renames. - app="dist-tray/darwin_${arch}/Bambu Profile Manager.app" + # The .app folder name is what Spotlight/Launchpad actually + # match against - real bug found live: CFBundleName/ + # CFBundleDisplayName in Info.plist do NOT affect Spotlight + # search at all (confirmed: mdfind found nothing for "bpm" with + # only the plist fields set, until "(bpm)" was added to the + # folder name itself). Without this, searching "bpm" - the + # product's own short name - found no match and macOS offered + # its Stocks-ticker-lookup suggestion instead, which looks like + # a real result until you click it. + # + # The release asset's own filename stays the technical + # "BpmTray_..." for a stable download URL across renames. + app="dist-tray/darwin_${arch}/Bambu Profile Manager (bpm).app" mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources" sed "s/VERSION_PLACEHOLDER/${version}/" packaging/macos/Info.plist.template > "$app/Contents/Info.plist" cp "dist-tray/darwin_${arch}/bpm-tray" "$app/Contents/MacOS/bpm-tray" diff --git a/packaging/macos/Info.plist.template b/packaging/macos/Info.plist.template index 49164e1..b92d1a4 100644 --- a/packaging/macos/Info.plist.template +++ b/packaging/macos/Info.plist.template @@ -3,9 +3,9 @@ CFBundleName - Bambu Profile Manager + Bambu Profile Manager (bpm) CFBundleDisplayName - Bambu Profile Manager + Bambu Profile Manager (bpm) CFBundleIdentifier uk.syscode-labs.bpm-tray CFBundleExecutable