@@ -6,7 +6,7 @@ cd "$ROOT_DIR"
66
77DEVICE=" "
88TARGET=" ${TARGET:- aarch64} "
9- BUNDLE_ID=" ${BUNDLE_ID:- com.dimillian.codexmonitor .ios} "
9+ BUNDLE_ID=" ${BUNDLE_ID:- com.jmcdev.opencodemonitor .ios} "
1010DEVELOPMENT_TEAM=" ${APPLE_DEVELOPMENT_TEAM:- } "
1111SKIP_BUILD=0
1212OPEN_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}
151151if [[ " $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
158158fi
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+
160166if [[ " $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
167173fi
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"
170176if [[ ! -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) "
172178fi
173179
174180if [[ -z " $APP_PATH " || ! -d " $APP_PATH " ]]; then
0 commit comments