@elumixor/devkit 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elumixor/devkit",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "Dev orchestrator for bun monorepos — free ports, run apps side-by-side, open the browser when ready",
5
5
  "author": "elumixor",
6
6
  "license": "ISC",
package/src/apple.ts CHANGED
@@ -41,8 +41,11 @@ export async function xcodeBuild(options: XcodeBuild & { destination?: string })
41
41
  const derived = resolve(root, options.derivedDataDir ?? `build/${options.scheme}`);
42
42
  const destination = options.destination ?? `generic/platform=${sdk === "watchsimulator" ? "watchOS" : "iOS"} Simulator`;
43
43
 
44
+ // The destination says which SDK each target compiles against, and `-sdk` would override that
45
+ // for all of them at once — which is how an iPhone build of a project that embeds a watch app
46
+ // ends up compiling the watch widget for iOS and failing on its deployment target.
44
47
  await $`xcodebuild -project ${project} -scheme ${options.scheme} -configuration ${configuration} \
45
- -sdk ${sdk} -destination ${destination} -derivedDataPath ${derived} \
48
+ -destination ${destination} -derivedDataPath ${derived} \
46
49
  CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO build`;
47
50
  }
48
51
 
@@ -11,6 +11,8 @@ export interface TauriMacosTargetOptions {
11
11
  stageDir?: string;
12
12
  /** Reinstall to `/Applications/<name>.app` after building, if it's already there (default true). */
13
13
  installIfPresent?: boolean;
14
+ /** Open the reinstalled app once it's in place, so the deploy ends on the new build running (default true). */
15
+ relaunch?: boolean;
14
16
  /** App Store Connect key env vars, for notarization (defaults match the iOS release). */
15
17
  keyIdEnv?: string;
16
18
  issuerIdEnv?: string;
@@ -98,6 +100,12 @@ export async function deployTauriMacos(options: TauriMacosTargetOptions = {}) {
98
100
  await $`cp -R ${appBundle} ${installed}`;
99
101
  await $`xattr -cr ${installed}`.nothrow().quiet();
100
102
  console.log(`Reinstalled ${installed}`);
103
+ // The old copy was quit to make room; leaving the new one closed reads as "nothing happened",
104
+ // and the DMG gets dragged into /Applications by hand over a build that is already there.
105
+ if (options.relaunch ?? true) {
106
+ await $`open ${installed}`.nothrow();
107
+ console.log(`Opened ${installed}`);
108
+ }
101
109
  }
102
110
 
103
111
  /** Sends the disk image to Apple and staples their answer into it, so it opens offline too. */