@hot-updater/apple-helper 1.2.0-rc.42 → 1.2.0-rc.44

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/dist/index.cjs CHANGED
@@ -4098,17 +4098,24 @@ const extractSimulatorApp = async ({ archivePath, outputPath }) => {
4098
4098
  if (app === void 0) throw new Error(`${path.default.basename(archivePath)} holds no .app.`);
4099
4099
  return path.default.join(outputPath, app);
4100
4100
  };
4101
- /** Installs a `.app` on a booted simulator, and opens it. */
4102
- const installOnSimulator = async ({ udid, appPath, appId }) => {
4101
+ /**
4102
+ * Installs a `.app` on a booted simulator, and opens it: with `url`, through
4103
+ * that URL, which starts the app with it as a scanned link does.
4104
+ */
4105
+ const installOnSimulator = async ({ udid, appPath, appId, url }) => {
4103
4106
  await simctl([
4104
4107
  "install",
4105
4108
  udid,
4106
4109
  appPath
4107
4110
  ]);
4108
- await simctl([
4111
+ await simctl(url === void 0 ? [
4109
4112
  "launch",
4110
4113
  udid,
4111
4114
  appId
4115
+ ] : [
4116
+ "openurl",
4117
+ udid,
4118
+ url
4112
4119
  ]);
4113
4120
  };
4114
4121
  //#endregion
package/dist/index.d.cts CHANGED
@@ -462,12 +462,17 @@ declare const extractSimulatorApp: ({ archivePath, outputPath }: {
462
462
  readonly archivePath: string;
463
463
  readonly outputPath: string;
464
464
  }) => Promise<string>;
465
- /** Installs a `.app` on a booted simulator, and opens it. */
466
- declare const installOnSimulator: ({ udid, appPath, appId }: {
465
+ /**
466
+ * Installs a `.app` on a booted simulator, and opens it: with `url`, through
467
+ * that URL, which starts the app with it as a scanned link does.
468
+ */
469
+ declare const installOnSimulator: ({ udid, appPath, appId, url }: {
467
470
  readonly udid: string;
468
471
  readonly appPath: string;
469
472
  /** The app's `CFBundleIdentifier`. */
470
473
  readonly appId: string;
474
+ /** A URL of a scheme the app registers, which opens it instead. */
475
+ readonly url?: string;
471
476
  }) => Promise<void>;
472
477
  //#endregion
473
478
  //#region src/types.d.ts
package/dist/index.d.mts CHANGED
@@ -463,12 +463,17 @@ declare const extractSimulatorApp: ({ archivePath, outputPath }: {
463
463
  readonly archivePath: string;
464
464
  readonly outputPath: string;
465
465
  }) => Promise<string>;
466
- /** Installs a `.app` on a booted simulator, and opens it. */
467
- declare const installOnSimulator: ({ udid, appPath, appId }: {
466
+ /**
467
+ * Installs a `.app` on a booted simulator, and opens it: with `url`, through
468
+ * that URL, which starts the app with it as a scanned link does.
469
+ */
470
+ declare const installOnSimulator: ({ udid, appPath, appId, url }: {
468
471
  readonly udid: string;
469
472
  readonly appPath: string;
470
473
  /** The app's `CFBundleIdentifier`. */
471
474
  readonly appId: string;
475
+ /** A URL of a scheme the app registers, which opens it instead. */
476
+ readonly url?: string;
472
477
  }) => Promise<void>;
473
478
  //#endregion
474
479
  //#region src/types.d.ts
package/dist/index.mjs CHANGED
@@ -4070,17 +4070,24 @@ const extractSimulatorApp = async ({ archivePath, outputPath }) => {
4070
4070
  if (app === void 0) throw new Error(`${path.basename(archivePath)} holds no .app.`);
4071
4071
  return path.join(outputPath, app);
4072
4072
  };
4073
- /** Installs a `.app` on a booted simulator, and opens it. */
4074
- const installOnSimulator = async ({ udid, appPath, appId }) => {
4073
+ /**
4074
+ * Installs a `.app` on a booted simulator, and opens it: with `url`, through
4075
+ * that URL, which starts the app with it as a scanned link does.
4076
+ */
4077
+ const installOnSimulator = async ({ udid, appPath, appId, url }) => {
4075
4078
  await simctl([
4076
4079
  "install",
4077
4080
  udid,
4078
4081
  appPath
4079
4082
  ]);
4080
- await simctl([
4083
+ await simctl(url === void 0 ? [
4081
4084
  "launch",
4082
4085
  udid,
4083
4086
  appId
4087
+ ] : [
4088
+ "openurl",
4089
+ udid,
4090
+ url
4084
4091
  ]);
4085
4092
  };
4086
4093
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/apple-helper",
3
- "version": "1.2.0-rc.42",
3
+ "version": "1.2.0-rc.44",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -29,9 +29,9 @@
29
29
  "dependencies": {
30
30
  "execa": "9.5.2",
31
31
  "fast-xml-parser": "5.8.0",
32
- "@hot-updater/cli-tools": "1.2.0-rc.42",
33
- "@hot-updater/plugin-core": "1.2.0-rc.42",
34
- "@hot-updater/protocol": "1.2.0-rc.42"
32
+ "@hot-updater/cli-tools": "1.2.0-rc.44",
33
+ "@hot-updater/protocol": "1.2.0-rc.44",
34
+ "@hot-updater/plugin-core": "1.2.0-rc.44"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^20"