Skip to content

Commit 6b69ff6

Browse files
committed
chore(ios): rebrand project and support local signing config
1 parent 56c4096 commit 6b69ff6

33 files changed

+877
-759
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dist
1212
dist-ssr
1313
*.local
1414
.testflight.local.env
15+
src-tauri/tauri.ios.local.conf.json
1516

1617
# Editor directories and files
1718
.vscode/*

scripts/build_run_ios_device.sh

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cd "$ROOT_DIR"
66

77
DEVICE=""
88
TARGET="${TARGET:-aarch64}"
9-
BUNDLE_ID="${BUNDLE_ID:-com.dimillian.codexmonitor.ios}"
9+
BUNDLE_ID="${BUNDLE_ID:-com.jmcdev.opencodemonitor.ios}"
1010
DEVELOPMENT_TEAM="${APPLE_DEVELOPMENT_TEAM:-}"
1111
SKIP_BUILD=0
1212
OPEN_XCODE=0
@@ -24,7 +24,7 @@ Options:
2424
--device <id|name> Required unless --list-devices is used.
2525
Accepts UDID, serial, UUID, or device name.
2626
--target <target> Tauri iOS target (default: aarch64)
27-
--bundle-id <id> Bundle id to launch (default: com.dimillian.codexmonitor.ios)
27+
--bundle-id <id> Bundle id to launch (default: com.jmcdev.opencodemonitor.ios)
2828
--team <id> Apple development team ID (sets APPLE_DEVELOPMENT_TEAM)
2929
--skip-build Skip build and only install + launch existing app
3030
--open-xcode Open Xcode after build instead of install/launch via devicectl
@@ -114,10 +114,10 @@ has_configured_ios_team() {
114114
const fs = require("fs");
115115
const baseCfg = JSON.parse(fs.readFileSync("src-tauri/tauri.conf.json", "utf8"));
116116
let iosCfg = {};
117-
try {
118-
iosCfg = JSON.parse(fs.readFileSync("src-tauri/tauri.ios.conf.json", "utf8"));
119-
} catch (_) {}
120-
const team = iosCfg?.bundle?.iOS?.developmentTeam ?? baseCfg?.bundle?.iOS?.developmentTeam;
117+
try { iosCfg = JSON.parse(fs.readFileSync("src-tauri/tauri.ios.conf.json", "utf8")); } catch (_) {}
118+
let localCfg = {};
119+
try { localCfg = JSON.parse(fs.readFileSync("src-tauri/tauri.ios.local.conf.json", "utf8")); } catch (_) {}
120+
const team = localCfg?.bundle?.iOS?.developmentTeam ?? iosCfg?.bundle?.iOS?.developmentTeam ?? baseCfg?.bundle?.iOS?.developmentTeam;
121121
process.exit(team && String(team).trim() ? 0 : 1);
122122
' >/dev/null 2>&1
123123
}
@@ -151,24 +151,30 @@ fi
151151
if [[ "$SKIP_BUILD" -eq 0 && -z "${APPLE_DEVELOPMENT_TEAM:-}" ]]; then
152152
if ! has_configured_ios_team; then
153153
echo "Missing iOS signing team." >&2
154-
echo "Set one via --team <TEAM_ID> or APPLE_DEVELOPMENT_TEAM, or set bundle.iOS.developmentTeam in src-tauri/tauri.ios.conf.json (or src-tauri/tauri.conf.json)." >&2
154+
echo "Set one via --team <TEAM_ID> or APPLE_DEVELOPMENT_TEAM, or set bundle.iOS.developmentTeam in src-tauri/tauri.ios.local.conf.json (or src-tauri/tauri.ios.conf.json)." >&2
155155
echo "Tip: First-time setup can be done with --open-xcode." >&2
156156
exit 1
157157
fi
158158
fi
159159

160+
LOCAL_IOS_CONF="src-tauri/tauri.ios.local.conf.json"
161+
EXTRA_ARGS=()
162+
if [[ -f "$LOCAL_IOS_CONF" ]]; then
163+
EXTRA_ARGS+=(--config "$LOCAL_IOS_CONF")
164+
fi
165+
160166
if [[ "$SKIP_BUILD" -eq 0 ]]; then
161167
sync_ios_icons
162168
if [[ "$OPEN_XCODE" -eq 1 ]]; then
163-
"$NPM_BIN" run tauri -- ios build -d -t "$TARGET" --open
169+
"$NPM_BIN" run tauri -- ios build -d -t "$TARGET" "${EXTRA_ARGS[@]}" --open
164170
exit 0
165171
fi
166-
"$NPM_BIN" run tauri -- ios build -d -t "$TARGET" --ci
172+
"$NPM_BIN" run tauri -- ios build -d -t "$TARGET" "${EXTRA_ARGS[@]}" --ci
167173
fi
168174

169-
APP_PATH="src-tauri/gen/apple/build/arm64/Codex Monitor.app"
175+
APP_PATH="src-tauri/gen/apple/build/arm64/OpenCode Monitor.app"
170176
if [[ ! -d "$APP_PATH" ]]; then
171-
APP_PATH="$(find src-tauri/gen/apple/build -maxdepth 4 -type d -name 'Codex Monitor.app' | head -n 1 || true)"
177+
APP_PATH="$(find src-tauri/gen/apple/build -maxdepth 4 -type d -name 'OpenCode Monitor.app' | head -n 1 || true)"
172178
fi
173179

174180
if [[ -z "$APP_PATH" || ! -d "$APP_PATH" ]]; then

src-tauri/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDisplayName</key>
6-
<string>Codex Monitor</string>
6+
<string>OpenCode Monitor</string>
77
<key>CFBundleName</key>
8-
<string>Codex Monitor</string>
8+
<string>OpenCode Monitor</string>
99
<key>NSMicrophoneUsageDescription</key>
1010
<string>Allow access to the microphone for dictation.</string>
1111
</dict>
-261 Bytes
Loading
-1.16 KB
Loading
-1.16 KB
Loading
-2.49 KB
Loading
-584 Bytes
Loading
-2.29 KB
Loading
-2.29 KB
Loading

0 commit comments

Comments
 (0)