Skip to content

Commit 102df37

Browse files
committed
rename app to PostHog
1 parent b092f19 commit 102df37

93 files changed

Lines changed: 246 additions & 236 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/code-build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ jobs:
113113
MATRIX_ARCH: ${{ matrix.arch }}
114114
run: |
115115
if [[ "$MATRIX_ARCH" == "arm64" ]]; then
116-
APP_BUNDLE="apps/code/out/mac-arm64/PostHog Code.app"
116+
APP_BUNDLE="apps/code/out/mac-arm64/PostHog.app"
117117
else
118-
APP_BUNDLE="apps/code/out/mac/PostHog Code.app"
118+
APP_BUNDLE="apps/code/out/mac/PostHog.app"
119119
fi
120120
RESOURCES="$APP_BUNDLE/Contents/Resources"
121121
UNPACKED="$RESOURCES/app.asar.unpacked/node_modules"

.github/workflows/code-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ jobs:
167167
MATRIX_ARCH: ${{ matrix.arch }}
168168
run: |
169169
if [[ "$MATRIX_ARCH" == "arm64" ]]; then
170-
APP_BUNDLE="apps/code/out/mac-arm64/PostHog Code.app"
170+
APP_BUNDLE="apps/code/out/mac-arm64/PostHog.app"
171171
else
172-
APP_BUNDLE="apps/code/out/mac/PostHog Code.app"
172+
APP_BUNDLE="apps/code/out/mac/PostHog.app"
173173
fi
174174
RESOURCES="$APP_BUNDLE/Contents/Resources"
175175
UNPACKED="$RESOURCES/app.asar.unpacked/node_modules"

.github/workflows/pr-build-installer.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ jobs:
148148
echo ""
149149
echo "**[⬇️ Open this run and download the \`code-macos-arm64\` artifact](${RUN_URL}#artifacts)** (Apple Silicon / M-series)."
150150
echo ""
151-
echo "Unzip it to get the \`.dmg\`, open it, and drag **PostHog Code** into **Applications**."
151+
echo "Unzip it to get the \`.dmg\`, open it, and drag **PostHog** into **Applications**."
152152
echo ""
153-
echo "This build is **signed but not notarized**, so macOS quarantines it on download and Gatekeeper reports *\"PostHog Code is damaged and can't be opened\"*. That is the missing notarization, not a corrupt file — clear the quarantine flag once and it launches:"
153+
echo "This build is **signed but not notarized**, so macOS quarantines it on download and Gatekeeper reports *\"PostHog is damaged and can't be opened\"*. That is the missing notarization, not a corrupt file — clear the quarantine flag once and it launches:"
154154
echo ""
155155
echo "\`\`\`sh"
156-
echo "xattr -dr com.apple.quarantine \"/Applications/PostHog Code.app\""
156+
echo "xattr -dr com.apple.quarantine \"/Applications/PostHog.app\""
157157
echo "\`\`\`"
158158
echo ""
159-
echo "Then open **PostHog Code** normally. (Fully notarized, double-click-to-run builds ship only from the tagged release pipeline.)"
159+
echo "Then open **PostHog** normally. (Fully notarized, double-click-to-run builds ship only from the tagged release pipeline.)"
160160
echo ""
161161
echo "<sub>Built from ${GITHUB_SHA} · rebuilds on each push while the \`build-installer\` label is present. Downloading requires being signed in to GitHub with repo access.</sub>"
162162
} > comment-body.md

apps/code/electron-builder.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const skipNotarize =
1111
const config: Configuration = {
1212
// Original release bundle id; changing it breaks existing installs' data dir and Keychain entries.
1313
appId: "com.posthog.array",
14-
productName: "PostHog Code",
15-
executableName: "PostHog Code",
14+
productName: "PostHog",
15+
executableName: "PostHog",
1616

1717
directories: {
1818
output: "out",
@@ -59,7 +59,7 @@ const config: Configuration = {
5959

6060
protocols: [
6161
{
62-
name: "PostHog Code",
62+
name: "PostHog",
6363
schemes: ["posthog-code"],
6464
},
6565
],
@@ -79,7 +79,7 @@ const config: Configuration = {
7979
// Shown in the macOS microphone-permission prompt when a user records a
8080
// custom notification sound.
8181
NSMicrophoneUsageDescription:
82-
"PostHog Code uses the microphone to record custom notification sounds.",
82+
"PostHog uses the microphone to record custom notification sounds.",
8383
},
8484
notarize: !skipNotarize,
8585
},

apps/code/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="UTF-8" />
66
<link rel="icon" type="image/png" href="/src/renderer/assets/images/bw-logo.png" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>PostHog Code</title>
8+
<title>PostHog</title>
99
</head>
1010

1111
<body class="bg-(--color-background) text-(--gray-12)">

apps/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@posthog/code",
33
"version": "0.0.0-dev",
4-
"description": "PostHog Code - desktop task manager",
4+
"description": "PostHog - desktop task manager",
55
"homepage": "https://posthog.com",
66
"main": ".vite/build/bootstrap.js",
77
"versionHash": "dynamic",

apps/code/scripts/dev-update/build-pair.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ pnpm exec electron-builder build --mac zip --arm64 --publish never \
3030
-c.extraMetadata.version="$OLD_VERSION" --config electron-builder.ts
3131

3232
echo "==> feed=$FEED_DIR"
33-
echo "==> app=out/mac-arm64/PostHog Code.app ($OLD_VERSION)"
33+
echo "==> app=out/mac-arm64/PostHog.app ($OLD_VERSION)"

apps/code/scripts/dev-update/run-from-ci-forge.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ command -v gh >/dev/null || {
2121
exit 1
2222
}
2323

24-
if pgrep -x "PostHog Code" >/dev/null; then
25-
echo "PostHog Code is already running. Quit it first; the test build shares its single-instance lock and data dir." >&2
24+
if pgrep -x "PostHog Code" >/dev/null || pgrep -x "PostHog" >/dev/null; then
25+
echo "PostHog is already running. Quit it first; the test build shares its single-instance lock and data dir." >&2
2626
exit 1
2727
fi
2828

apps/code/scripts/dev-update/run-from-ci.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ command -v gh >/dev/null || {
2020
exit 1
2121
}
2222

23-
if pgrep -x "PostHog Code" >/dev/null; then
24-
echo "PostHog Code is already running. Quit it first; the test build shares its single-instance lock and data dir." >&2
23+
if pgrep -x "PostHog" >/dev/null; then
24+
echo "PostHog is already running. Quit it first; the test build shares its single-instance lock and data dir." >&2
2525
exit 1
2626
fi
2727

@@ -57,7 +57,7 @@ FEED_YML="$(find "$TMP/new" -name latest-mac.yml | head -1)"
5757
echo "==> old 1.0.0 app -> out/mac-arm64"
5858
rm -rf out/mac-arm64 && mkdir -p out/mac-arm64
5959
ditto -x -k "$OLD_ZIP" out/mac-arm64
60-
xattr -dr com.apple.quarantine "out/mac-arm64/PostHog Code.app" 2>/dev/null || true
60+
xattr -dr com.apple.quarantine "out/mac-arm64/PostHog.app" 2>/dev/null || true
6161

6262
echo "==> new 2.0.0 feed -> out/dev-update-feed"
6363
rm -rf out/dev-update-feed && mkdir -p out/dev-update-feed
@@ -75,12 +75,12 @@ SERVE_PID=$!
7575

7676
APP_LOG="out/run-from-ci-app.log"
7777
echo
78-
echo "==> launching PostHog Code 1.0.0 (feed http://127.0.0.1:$PORT)"
78+
echo "==> launching PostHog 1.0.0 (feed http://127.0.0.1:$PORT)"
7979
echo " In the app: open the update banner, click Download, then Restart."
8080
echo " It swaps and relaunches into 2.0.0. Quit the app (or Ctrl+C) to finish."
8181
echo " App output: $APP_LOG update log: ~/.posthog-code/logs/main.log"
8282
echo
8383
POSTHOG_E2E_UPDATE_FEED="http://127.0.0.1:$PORT" \
84-
"out/mac-arm64/PostHog Code.app/Contents/MacOS/PostHog Code" >"$APP_LOG" 2>&1 || true
84+
"out/mac-arm64/PostHog.app/Contents/MacOS/PostHog" >"$APP_LOG" 2>&1 || true
8585

8686
echo "==> app exited; cleaning up"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Patches the Electron binary's Info.plist to show "Array (Development)" in the macOS menu bar
2+
# Patches the Electron binary's Info.plist to show "PostHog (Development)" in the macOS menu bar
33

44
set -e
55

@@ -10,10 +10,10 @@ if [ ! -f "$PLIST_FILE" ]; then
1010
exit 0
1111
fi
1212

13-
if /usr/libexec/PlistBuddy -c "Print :CFBundleName" "$PLIST_FILE" | grep -q "PostHog Code (Development)"; then
13+
if /usr/libexec/PlistBuddy -c "Print :CFBundleName" "$PLIST_FILE" | grep -q "PostHog (Development)"; then
1414
exit 0
1515
fi
1616

17-
/usr/libexec/PlistBuddy -c "Set :CFBundleName 'PostHog Code (Development)'" "$PLIST_FILE"
18-
/usr/libexec/PlistBuddy -c "Set :CFBundleDisplayName 'PostHog Code (Development)'" "$PLIST_FILE"
17+
/usr/libexec/PlistBuddy -c "Set :CFBundleName 'PostHog (Development)'" "$PLIST_FILE"
18+
/usr/libexec/PlistBuddy -c "Set :CFBundleDisplayName 'PostHog (Development)'" "$PLIST_FILE"
1919
/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier 'com.posthog.array.dev'" "$PLIST_FILE"

0 commit comments

Comments
 (0)