Skip to content

Commit 8ec90ac

Browse files
Lee Seongjooclaude
andcommitted
Rename the app bundle/executable to "Codebasic TTS"
Display name was already "Codebasic TTS", but the bundle/executable were still "SelectedTextTTS", which is what the Dock/menu showed. Build the bundle as "Codebasic TTS.app" with a matching CFBundleExecutable; build.sh removes and unregisters the old SelectedTextTTS bundle on install. (Source dir and bundle id stay as-is — internal only.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent babb26a commit 8ec90ac

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

‎Resources/Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<key>CFBundleIdentifier</key>
1010
<string>com.seongjoo.SelectedTextTTS</string>
1111
<key>CFBundleExecutable</key>
12-
<string>SelectedTextTTS</string>
12+
<string>Codebasic TTS</string>
1313
<key>CFBundleVersion</key>
1414
<string>1</string>
1515
<key>CFBundleShortVersionString</key>

‎build.sh‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
#
1313
set -euo pipefail
1414

15-
APP_NAME="SelectedTextTTS"
15+
APP_NAME="Codebasic TTS"
16+
OLD_APP_NAME="SelectedTextTTS" # previous bundle name, cleaned up on install
1617
BUNDLE_ID="com.seongjoo.SelectedTextTTS"
1718
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1819
BUILD_DIR="$HERE/build"
@@ -45,7 +46,15 @@ build() {
4546

4647
install_and_register() {
4748
echo "==> Stopping any running instance (so 'open' launches the new binary, not the old one)"
48-
pkill -f "$APP_NAME.app/Contents/MacOS/$APP_NAME" 2>/dev/null && sleep 1 || true
49+
pkill -f "$APP_NAME.app/Contents/MacOS/$APP_NAME" 2>/dev/null || true
50+
pkill -f "$OLD_APP_NAME.app/Contents/MacOS/$OLD_APP_NAME" 2>/dev/null || true
51+
sleep 1
52+
53+
echo "==> Removing the old '$OLD_APP_NAME' bundle if present (renamed to '$APP_NAME')"
54+
if [ -d "$INSTALL_DIR/$OLD_APP_NAME.app" ]; then
55+
"$LSREGISTER" -u "$INSTALL_DIR/$OLD_APP_NAME.app" 2>/dev/null || true
56+
rm -rf "$INSTALL_DIR/$OLD_APP_NAME.app"
57+
fi
4958

5059
echo "==> Installing to $INSTALL_DIR (Launch Services only scans ~/Applications and /Applications)"
5160
mkdir -p "$INSTALL_DIR"

0 commit comments

Comments
 (0)