@capawesome/cli 0.0.5 → 0.0.6
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/CHANGELOG.md +7 -0
- package/dist/commands/apps/bundles/create.js +32 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.0.6](https://github.com/capawesome-team/cli/compare/v0.0.5...v0.0.6) (2024-05-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **bundles:** add new min and max options ([#1](https://github.com/capawesome-team/cli/issues/1)) ([41d4bad](https://github.com/capawesome-team/cli/commit/41d4badadafc4b5989d22200e58f09efe01ebeec))
|
|
11
|
+
|
|
5
12
|
## [0.0.5](https://github.com/capawesome-team/cli/compare/v0.0.4...v0.0.5) (2024-05-02)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -27,9 +27,13 @@ exports.default = (0, citty_1.defineCommand)({
|
|
|
27
27
|
description: 'Create a new app bundle.',
|
|
28
28
|
},
|
|
29
29
|
args: {
|
|
30
|
-
|
|
30
|
+
androidMax: {
|
|
31
31
|
type: 'string',
|
|
32
|
-
description: '
|
|
32
|
+
description: 'The maximum Android version code (`versionCode`) that the bundle supports.',
|
|
33
|
+
},
|
|
34
|
+
androidMin: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'The minimum Android version code (`versionCode`) that the bundle supports.',
|
|
33
37
|
},
|
|
34
38
|
appId: {
|
|
35
39
|
type: 'string',
|
|
@@ -39,6 +43,18 @@ exports.default = (0, citty_1.defineCommand)({
|
|
|
39
43
|
type: 'string',
|
|
40
44
|
description: 'Channel to associate the bundle with.',
|
|
41
45
|
},
|
|
46
|
+
path: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'Path to the bundle to upload. Must be a folder (e.g. `www` or `dist`) or a zip file.',
|
|
49
|
+
},
|
|
50
|
+
iosMax: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'The maximum iOS bundle version (`CFBundleVersion`) that the bundle supports.',
|
|
53
|
+
},
|
|
54
|
+
iosMin: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
description: 'The minimum iOS bundle version (`CFBundleVersion`) that the bundle supports.',
|
|
57
|
+
},
|
|
42
58
|
},
|
|
43
59
|
run: (ctx) => __awaiter(void 0, void 0, void 0, function* () {
|
|
44
60
|
var _a, _b, _c;
|
|
@@ -46,8 +62,9 @@ exports.default = (0, citty_1.defineCommand)({
|
|
|
46
62
|
consola_1.default.error('You must be logged in to run this command.');
|
|
47
63
|
return;
|
|
48
64
|
}
|
|
49
|
-
|
|
65
|
+
const { androidMax, androidMin, iosMax, iosMin } = ctx.args;
|
|
50
66
|
let appId = ctx.args.appId;
|
|
67
|
+
let path = ctx.args.path;
|
|
51
68
|
let channelName = ctx.args.channel;
|
|
52
69
|
if (!path) {
|
|
53
70
|
path = yield (0, prompt_1.prompt)('Enter the path to the app bundle:', {
|
|
@@ -86,6 +103,18 @@ exports.default = (0, citty_1.defineCommand)({
|
|
|
86
103
|
if (channelName) {
|
|
87
104
|
formData.append('channelName', channelName);
|
|
88
105
|
}
|
|
106
|
+
if (androidMax) {
|
|
107
|
+
formData.append('maxAndroidAppVersionCode', androidMax);
|
|
108
|
+
}
|
|
109
|
+
if (androidMin) {
|
|
110
|
+
formData.append('minAndroidAppVersionCode', androidMin);
|
|
111
|
+
}
|
|
112
|
+
if (iosMax) {
|
|
113
|
+
formData.append('maxIosAppVersionCode', iosMax);
|
|
114
|
+
}
|
|
115
|
+
if (iosMin) {
|
|
116
|
+
formData.append('minIosAppVersionCode', iosMin);
|
|
117
|
+
}
|
|
89
118
|
consola_1.default.start('Uploading...');
|
|
90
119
|
// Upload the bundle
|
|
91
120
|
try {
|