runcloud 0.2.220 → 0.2.221

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.
@@ -266,14 +266,18 @@ export async function requestFor(flags) {
266
266
  }
267
267
  const manualValues = [flags.certificateP12, flags.certificatePassword, ...(flags.provisioningProfile ?? [])];
268
268
  const hasManual = manualValues.some(Boolean);
269
- if (hasManual && (!flags.certificateP12 || !flags.certificatePassword || !(flags.provisioningProfile?.length))) {
269
+ if (hasManual && flags.sdk === 'macosx' && (!flags.certificateP12 || !flags.certificatePassword)) {
270
+ throw new Error('--certificate-p12 and --certificate-password are required together for a Developer ID macOS build');
271
+ }
272
+ if (hasManual && flags.sdk !== 'macosx' && (!flags.certificateP12 || !flags.certificatePassword || !(flags.provisioningProfile?.length))) {
270
273
  throw new Error('--certificate-p12, --certificate-password, and at least one --provisioning-profile are required together');
271
274
  }
272
275
  let sdk = flags.sdk;
273
276
  if (hasManual && !sdk)
274
277
  sdk = 'iphoneos';
275
- if (hasManual && sdk && !['iphoneos', 'watchos'].includes(sdk))
276
- throw new Error('Manual signing requires --sdk iphoneos or --sdk watchos');
278
+ if (hasManual && sdk && !['iphoneos', 'watchos', 'macosx'].includes(sdk)) {
279
+ throw new Error('Manual signing requires --sdk iphoneos, --sdk watchos, or --sdk macosx');
280
+ }
277
281
  if (flags.applicationId !== undefined && !/^[A-Za-z0-9_.:-]{1,200}$/.test(flags.applicationId)) {
278
282
  throw new Error('--application-id must contain 1–200 letters, digits, dots, underscores, colons, or hyphens');
279
283
  }
@@ -307,7 +311,7 @@ export async function requestFor(flags) {
307
311
  ? { signing: {
308
312
  certificateP12Base64: await base64File(flags.certificateP12, '--certificate-p12'),
309
313
  certificatePassword: flags.certificatePassword,
310
- provisioningProfilesBase64: await Promise.all(flags.provisioningProfile.map((file) => base64File(file, '--provisioning-profile'))),
314
+ provisioningProfilesBase64: await Promise.all((flags.provisioningProfile ?? []).map((file) => base64File(file, '--provisioning-profile'))),
311
315
  } }
312
316
  : {}),
313
317
  ...(flags.upload ? { upload: { assetName: flags.upload } } : {}),
@@ -379,12 +383,16 @@ Examples:
379
383
  Build a standalone watchOS app for the watch simulator:
380
384
  $ runcloud xcode build . --scheme WatchApp --sdk watchsimulator
381
385
  Build an iOS app that embeds a watch app (the watch app is built with it):
382
- $ runcloud xcode build . --scheme App --sdk iphonesimulator`)
386
+ $ runcloud xcode build . --scheme App --sdk iphonesimulator
387
+ Build a macOS app, unsigned (ad hoc), as a zipped .app:
388
+ $ runcloud xcode build . --scheme MacApp --sdk macosx -o MacApp.zip
389
+ Build a macOS app signed with Developer ID (the profile is needed only for restricted entitlements):
390
+ $ runcloud xcode build . --scheme MacApp --sdk macosx --certificate-p12 DeveloperID.p12 --certificate-password "$P12_PASSWORD" -o MacApp.zip`)
383
391
  .argument('[path]', 'local source directory', '.')
384
392
  .option('--scheme <name>', 'Xcode scheme')
385
393
  .option('--workspace <path>', 'relative .xcworkspace path')
386
394
  .option('--project <path>', 'relative .xcodeproj path')
387
- .option('--sdk <sdk>', 'iphonesimulator, iphoneos, watchsimulator, or watchos')
395
+ .option('--sdk <sdk>', 'iphonesimulator, iphoneos, watchsimulator, watchos, or macosx')
388
396
  .option('--configuration <name>', 'Debug or Release')
389
397
  .option('--xcodegen-spec <path>', 'relative XcodeGen spec path')
390
398
  .option('--xcodegen-project <path>', 'relative XcodeGen output directory')
@@ -395,7 +403,7 @@ Examples:
395
403
  .option('--build-setting <KEY=VALUE>', 'safe Xcode build setting; repeatable', repeated, [])
396
404
  .option('--certificate-p12 <path>', 'PKCS#12 signing certificate')
397
405
  .option('--certificate-password <password>', 'PKCS#12 certificate password')
398
- .option('--provisioning-profile <path>', 'provisioning profile; repeatable', repeated, [])
406
+ .option('--provisioning-profile <path>', 'provisioning profile (.mobileprovision, or .provisionprofile for macOS); repeatable', repeated, [])
399
407
  .option('--upload <filename>', 'public filename for the retained run.cloud artifact')
400
408
  .option('--signed-upload-url <url>', 'also PUT the artifact to this presigned HTTPS URL')
401
409
  .option('--ignore <regex>', 'exclude source paths matching a regular expression; repeatable', repeated, [])
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = '0.2.220';
1
+ export const CLI_VERSION = '0.2.221';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.2.220",
3
+ "version": "0.2.221",
4
4
  "description": "Create and control run.cloud remote mobile simulators and cloud sandboxes",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
index c9092ae..69cded2 100644
Binary file