runcloud 0.2.174 → 0.2.176

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.
@@ -15,7 +15,7 @@ const CONFIG_RULES = {
15
15
  app_name: { path: ['expo', 'name'], absent: 'fail' },
16
16
  slug: { path: ['expo', 'slug'], absent: 'fail' },
17
17
  ios_bundle_id: { path: ['expo', 'ios', 'bundleIdentifier'], absent: 'info', storeId: /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)+$/ },
18
- android_package: { path: ['expo', 'android', 'package'], absent: 'info', storeId: /^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$/ },
18
+ android_package: { path: ['expo', 'android', 'package'], absent: 'info', storeId: /^[A-Za-z][A-Za-z0-9_]*(\.[A-Za-z][A-Za-z0-9_]*)+$/ },
19
19
  version: { path: ['expo', 'version'], absent: 'warning' },
20
20
  scheme: { path: ['expo', 'scheme'], absent: 'info' },
21
21
  user_interface_style: { path: ['expo', 'userInterfaceStyle'], absent: 'info' },
@@ -227,36 +227,14 @@ export async function requestFor(flags) {
227
227
  if (hasManual && (!flags.certificateP12 || !flags.certificatePassword || !(flags.provisioningProfile?.length))) {
228
228
  throw new Error('--certificate-p12, --certificate-password, and at least one --provisioning-profile are required together');
229
229
  }
230
- const hasCloud = Boolean(flags.signingMethod || flags.teamId);
231
- if (hasCloud && (!flags.signingMethod || !flags.teamId || !flags.ascKeyId || !flags.ascIssuerId || !flags.ascKey)) {
232
- throw new Error('--signing-method requires --team-id, --asc-key-id, --asc-issuer-id, and --asc-key');
233
- }
234
- if (hasManual && hasCloud)
235
- throw new Error('Manual certificate signing and --signing-method are mutually exclusive');
236
- const hasAscCredentials = Boolean(flags.ascKeyId || flags.ascIssuerId || flags.ascKey);
237
- if (!flags.uploadToAppstore && !hasCloud && hasAscCredentials) {
238
- throw new Error('App Store Connect credential flags require --signing-method or --upload-to-appstore');
239
- }
240
- if (!flags.uploadToAppstore && (flags.ascWaitTimeout !== undefined || flags.autoBuildNumber)) {
241
- throw new Error('--asc-wait-timeout and --auto-build-number require --upload-to-appstore');
242
- }
243
- if (flags.uploadToAppstore && (!flags.ascKeyId || !flags.ascKey || (!hasManual && !hasCloud))) {
244
- throw new Error('--upload-to-appstore requires signing plus --asc-key-id and --asc-key');
245
- }
246
230
  let sdk = flags.sdk;
247
- if ((hasManual || hasCloud) && !sdk)
231
+ if (hasManual && !sdk)
248
232
  sdk = 'iphoneos';
249
233
  if (hasManual && sdk && !['iphoneos', 'watchos'].includes(sdk))
250
234
  throw new Error('Manual signing requires --sdk iphoneos or --sdk watchos');
251
- if (hasCloud && sdk !== 'iphoneos')
252
- throw new Error('Cloud signing requires --sdk iphoneos');
253
- if (flags.uploadToAppstore && sdk !== 'iphoneos')
254
- throw new Error('--upload-to-appstore requires --sdk iphoneos');
255
235
  if (flags.applicationId !== undefined && !/^[A-Za-z0-9_.:-]{1,200}$/.test(flags.applicationId)) {
256
236
  throw new Error('--application-id must contain 1–200 letters, digits, dots, underscores, colons, or hyphens');
257
237
  }
258
- const ascPrivateKey = flags.ascKey ? await base64File(flags.ascKey, '--asc-key') : undefined;
259
- const waitTimeoutSeconds = integerFlag(flags.ascWaitTimeout, '--asc-wait-timeout', 0, 1800, 0);
260
238
  const timeoutSeconds = integerFlag(flags.timeoutSeconds, '--timeout-seconds', 1, 21600, 3600);
261
239
  const parsedBuildSettings = buildSettings(flags.buildSetting);
262
240
  return {
@@ -289,25 +267,6 @@ export async function requestFor(flags) {
289
267
  provisioningProfilesBase64: await Promise.all(flags.provisioningProfile.map((file) => base64File(file, '--provisioning-profile'))),
290
268
  } }
291
269
  : {}),
292
- ...(hasCloud
293
- ? { cloudSigning: {
294
- method: flags.signingMethod,
295
- teamId: flags.teamId,
296
- apiKeyId: flags.ascKeyId,
297
- apiIssuerId: flags.ascIssuerId,
298
- apiPrivateKeyBase64: ascPrivateKey,
299
- } }
300
- : {}),
301
- ...(flags.uploadToAppstore
302
- ? { appStore: {
303
- enabled: true,
304
- apiKeyId: flags.ascKeyId,
305
- ...(flags.ascIssuerId ? { apiIssuerId: flags.ascIssuerId } : {}),
306
- apiPrivateKeyBase64: ascPrivateKey,
307
- waitTimeoutSeconds,
308
- autoIncrementBuildNumber: flags.autoBuildNumber === true,
309
- } }
310
- : {}),
311
270
  ...(flags.upload ? { upload: { assetName: flags.upload } } : {}),
312
271
  ...(flags.signedUploadUrl ? { upload: { signedUploadUrl: flags.signedUploadUrl } } : {}),
313
272
  timeoutSeconds,
@@ -386,16 +345,8 @@ export function registerXcode(program) {
386
345
  .option('--certificate-p12 <path>', 'PKCS#12 signing certificate')
387
346
  .option('--certificate-password <password>', 'PKCS#12 certificate password')
388
347
  .option('--provisioning-profile <path>', 'provisioning profile; repeatable', repeated, [])
389
- .option('--signing-method <method>', 'app-store-connect, release-testing, or debugging')
390
- .option('--team-id <id>', 'Apple Developer team ID for cloud signing')
391
348
  .option('--upload <filename>', 'public filename for the retained run.cloud artifact')
392
349
  .option('--signed-upload-url <url>', 'also PUT the artifact to this presigned HTTPS URL')
393
- .option('--upload-to-appstore', 'upload the signed IPA to App Store Connect', false)
394
- .option('--asc-key-id <id>', 'App Store Connect API key ID')
395
- .option('--asc-issuer-id <id>', 'App Store Connect API issuer ID')
396
- .option('--asc-key <path>', 'App Store Connect API private key (.p8)')
397
- .option('--asc-wait-timeout <seconds>', 'upload acceptance compatibility value, 0 to 1800')
398
- .option('--auto-build-number', 'increment the Xcode project build number before upload', false)
399
350
  .option('--ignore <regex>', 'exclude source paths matching a regular expression; repeatable', repeated, [])
400
351
  .option('--include <regex>', 'force-include matching source paths; repeatable', repeated, [])
401
352
  .option('--additional-file <local=remote>', 'include an extra file; repeatable', repeated, [])
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = '0.2.174';
1
+ export const CLI_VERSION = '0.2.176';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.2.174",
3
+ "version": "0.2.176",
4
4
  "description": "Create and control run.cloud remote mobile simulators and cloud sandboxes",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
Binary file
Binary file