@better-update/cli 0.7.0 → 0.7.1
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.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
21
21
|
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region package.json
|
|
24
|
-
var version = "0.7.
|
|
24
|
+
var version = "0.7.1";
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region ../../packages/type-guards/src/index.ts
|
|
@@ -758,7 +758,7 @@ var BuildCredentialsGroup = class extends HttpApiGroup.make("buildCredentials").
|
|
|
758
758
|
//#region ../../packages/api/src/domain/build.ts
|
|
759
759
|
const Distribution = Schema.Literal("app-store", "ad-hoc", "development", "enterprise", "simulator", "play-store", "direct");
|
|
760
760
|
const ArtifactFormat = Schema.Literal("ipa", "apk", "aab", "tar.gz");
|
|
761
|
-
const Sha256Hex = Schema.String.pipe(Schema.pattern(/^[a-fA-F0-9]{64}$/), Schema.maxLength(64));
|
|
761
|
+
const Sha256Hex = Schema.String.pipe(Schema.pattern(/^[a-fA-F0-9]{64}$/u), Schema.maxLength(64));
|
|
762
762
|
const CreateBuildCommonFields = {
|
|
763
763
|
projectId: Id,
|
|
764
764
|
profile: Schema.optional(Schema.String),
|
|
@@ -986,7 +986,7 @@ var ChannelsGroup = class extends HttpApiGroup.make("channels").add(HttpApiEndpo
|
|
|
986
986
|
//#endregion
|
|
987
987
|
//#region ../../packages/api/src/domain/device.ts
|
|
988
988
|
const DeviceClass = Schema.Literal("IPHONE", "IPAD", "MAC", "UNKNOWN");
|
|
989
|
-
const IDENTIFIER_PATTERN = /^(?:[A-Fa-f0-9]{40}|[A-Fa-f0-9]{8}-[A-Fa-f0-9]{16}|[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12})
|
|
989
|
+
const IDENTIFIER_PATTERN = /^(?:[A-Fa-f0-9]{40}|[A-Fa-f0-9]{8}-[A-Fa-f0-9]{16}|[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12})$/u;
|
|
990
990
|
const DeviceIdentifier = Schema.String.pipe(Schema.pattern(IDENTIFIER_PATTERN, { message: () => "Identifier must be an Apple UDID: 40 hex chars, 8-16 hex, or UUID (8-4-4-4-12 hex)" }));
|
|
991
991
|
var Device = class extends Schema.Class("Device")({
|
|
992
992
|
id: Id,
|
|
@@ -1086,7 +1086,7 @@ var EnvVar = class extends Schema.Class("EnvVar")({
|
|
|
1086
1086
|
createdAt: DateTimeString,
|
|
1087
1087
|
updatedAt: DateTimeString
|
|
1088
1088
|
}) {};
|
|
1089
|
-
const EnvVarKey = Schema.String.pipe(Schema.pattern(/^[A-Z][A-Z0-9_]*$/), Schema.maxLength(256));
|
|
1089
|
+
const EnvVarKey = Schema.String.pipe(Schema.pattern(/^[A-Z][A-Z0-9_]*$/u), Schema.maxLength(256));
|
|
1090
1090
|
const EnvVarValue = Schema.String.pipe(Schema.maxLength(32768));
|
|
1091
1091
|
const EnvVarEnvironment = Schema.String.pipe(Schema.minLength(1), Schema.maxLength(64));
|
|
1092
1092
|
const CreateEnvVarBody = Schema.Struct({
|
|
@@ -1490,7 +1490,7 @@ const AuthStoreLive = Layer.effect(AuthStore, Effect.gen(function* () {
|
|
|
1490
1490
|
const DEFAULT_BASE_URL = "https://graph.better-update.dev";
|
|
1491
1491
|
const DEFAULT_WEB_URL = "https://better-update.dev";
|
|
1492
1492
|
var ConfigStoreParseError = class extends Data.TaggedError("ConfigStoreParseError") {};
|
|
1493
|
-
const normalizeUrl = (value) => value.replace(
|
|
1493
|
+
const normalizeUrl = (value) => value.replace(/\/$/u, "");
|
|
1494
1494
|
var ConfigStore = class extends Context.Tag("cli/ConfigStore")() {};
|
|
1495
1495
|
const ConfigStoreLive = Layer.effect(ConfigStore, Effect.gen(function* () {
|
|
1496
1496
|
const fs = yield* FileSystem.FileSystem;
|
|
@@ -2518,12 +2518,12 @@ const renderExportOptionsPlist = ({ method, teamId, bundleId, provisioningProfil
|
|
|
2518
2518
|
//#region src/lib/ios-keychain.ts
|
|
2519
2519
|
const runOrFail = (cmd, step) => Command.string(cmd).pipe(Effect.mapError((cause) => new KeychainError({ message: `keychain ${step} failed: ${String(cause)}` })));
|
|
2520
2520
|
const listCurrentKeychains = Effect.gen(function* () {
|
|
2521
|
-
return (yield* runOrFail(Command.make("security", "list-keychains", "-d", "user"), "list-keychains")).split("\n").map((line) => line.trim().replace(/^"
|
|
2521
|
+
return (yield* runOrFail(Command.make("security", "list-keychains", "-d", "user"), "list-keychains")).split("\n").map((line) => line.trim().replace(/^"/u, "").replace(/"$/u, "")).filter((line) => line.length > 0);
|
|
2522
2522
|
});
|
|
2523
2523
|
const parseSigningIdentity = (output) => {
|
|
2524
2524
|
const lines = output.split("\n");
|
|
2525
2525
|
for (const line of lines) {
|
|
2526
|
-
const match = /"([^"]+)"
|
|
2526
|
+
const match = /"([^"]+)"/u.exec(line);
|
|
2527
2527
|
if (match?.[1]) return match[1];
|
|
2528
2528
|
}
|
|
2529
2529
|
};
|
|
@@ -2752,7 +2752,7 @@ const runIosBuild = (input) => Effect.gen(function* () {
|
|
|
2752
2752
|
});
|
|
2753
2753
|
const provisioning = yield* installProvisioningProfile({ profilePath: credentials.profilePath });
|
|
2754
2754
|
const workspaceFilename = yield* findXcworkspace(iosDir);
|
|
2755
|
-
const scheme = iosProfile.scheme ?? workspaceFilename.replace(/\.xcworkspace
|
|
2755
|
+
const scheme = iosProfile.scheme ?? workspaceFilename.replace(/\.xcworkspace$/u, "");
|
|
2756
2756
|
const configuration = iosProfile.buildConfiguration ?? "Release";
|
|
2757
2757
|
const archivePath = path.join(tempDir, "build.xcarchive");
|
|
2758
2758
|
const archiveCmd = Command.make("xcodebuild", "-workspace", workspaceFilename, "-scheme", scheme, "-configuration", configuration, "-archivePath", archivePath, "-allowProvisioningUpdates", "archive", "CODE_SIGN_STYLE=Manual", `DEVELOPMENT_TEAM=${provisioning.teamId}`, `CODE_SIGN_IDENTITY=${keychain.signingIdentity}`, `PROVISIONING_PROFILE_SPECIFIER=${provisioning.name}`).pipe(Command.workingDirectory(iosDir), Command.env(commandEnv));
|