@todesktop/cli 1.9.2 → 1.9.3-0
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/README.md +27 -7
- package/dist/cli.js +73 -23
- package/dist/cli.js.map +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -597,13 +597,6 @@ Default: The root [`icon`](#icon---string) is used.
|
|
|
597
597
|
|
|
598
598
|
The path to your application's Mac desktop icon. It must be an ICNS or PNG.
|
|
599
599
|
|
|
600
|
-
#### `mac.provisioningProfile` - (optional) string
|
|
601
|
-
|
|
602
|
-
Default: No provisioning profile is used by default.
|
|
603
|
-
Example: `./mas.provisionprofile`.
|
|
604
|
-
|
|
605
|
-
The path to a provisioning profile for authorizing your application. This is required for Mac App Store.
|
|
606
|
-
|
|
607
600
|
#### `mac.requirements` - (optional) string
|
|
608
601
|
|
|
609
602
|
Example: `./requirements.txt`.
|
|
@@ -618,6 +611,27 @@ Example: `{ "type": "development" }`.
|
|
|
618
611
|
|
|
619
612
|
This object contains options that only apply to building the application for Mac App Store.
|
|
620
613
|
|
|
614
|
+
#### `mas.entitlements` - (optional) string
|
|
615
|
+
|
|
616
|
+
Default: No entitlements file is provided by default.
|
|
617
|
+
Example: `./entitlements.mas.plist`.
|
|
618
|
+
|
|
619
|
+
The path to an entitlements file for signing your application. It must be a plist file.
|
|
620
|
+
|
|
621
|
+
#### `mas.entitlementsInherit` - (optional) string
|
|
622
|
+
|
|
623
|
+
Default: No entitlements file is provided by default.
|
|
624
|
+
Example: `./entitlementsInherit.mas.plist`.
|
|
625
|
+
|
|
626
|
+
The path to a child entitlements file for signing your application. It must be a plist file.
|
|
627
|
+
|
|
628
|
+
#### `mas.provisioningProfile` - (optional) string
|
|
629
|
+
|
|
630
|
+
Default: No provisioning profile is used by default.
|
|
631
|
+
Example: `./mas.provisionprofile`.
|
|
632
|
+
|
|
633
|
+
The path to a provisioning profile for authorizing your application.
|
|
634
|
+
|
|
621
635
|
#### `mas.type` - (optional) string
|
|
622
636
|
|
|
623
637
|
Default: `"development"`
|
|
@@ -1089,6 +1103,12 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
|
|
|
1089
1103
|
|
|
1090
1104
|
## Changelog
|
|
1091
1105
|
|
|
1106
|
+
## v1.9.3
|
|
1107
|
+
|
|
1108
|
+
- Add support for `mas.entitlements` in config.
|
|
1109
|
+
- Add support for `mas.entitlementsInherit` in config.
|
|
1110
|
+
- Add support for `mas.provisioningProfile` in config. Removed `mac.provisioningProfile` as a result.
|
|
1111
|
+
|
|
1092
1112
|
## v1.9.2
|
|
1093
1113
|
|
|
1094
1114
|
- Add support for `mas.type` in config.
|
package/dist/cli.js
CHANGED
|
@@ -1024,11 +1024,6 @@ function resolveConfigPaths({
|
|
|
1024
1024
|
if (config2.mac.entitlements) {
|
|
1025
1025
|
result.mac.entitlements = resolvePath(config2.mac.entitlements);
|
|
1026
1026
|
}
|
|
1027
|
-
if (config2.mac.provisioningProfile) {
|
|
1028
|
-
result.mac.provisioningProfile = resolvePath(
|
|
1029
|
-
config2.mac.provisioningProfile
|
|
1030
|
-
);
|
|
1031
|
-
}
|
|
1032
1027
|
if (config2.mac.requirements) {
|
|
1033
1028
|
result.mac.requirements = resolvePath(config2.mac.requirements);
|
|
1034
1029
|
}
|
|
@@ -1036,6 +1031,22 @@ function resolveConfigPaths({
|
|
|
1036
1031
|
result.mac.icon = resolvePath(config2.mac.icon);
|
|
1037
1032
|
}
|
|
1038
1033
|
}
|
|
1034
|
+
if (config2.mas) {
|
|
1035
|
+
result.mas = { ...config2.mas };
|
|
1036
|
+
if (config2.mas.entitlements) {
|
|
1037
|
+
result.mas.entitlements = resolvePath(config2.mas.entitlements);
|
|
1038
|
+
}
|
|
1039
|
+
if (config2.mas.entitlementsInherit) {
|
|
1040
|
+
result.mas.entitlementsInherit = resolvePath(
|
|
1041
|
+
config2.mas.entitlementsInherit
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
if (config2.mas.provisioningProfile) {
|
|
1045
|
+
result.mas.provisioningProfile = resolvePath(
|
|
1046
|
+
config2.mas.provisioningProfile
|
|
1047
|
+
);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1039
1050
|
if (config2.dmg) {
|
|
1040
1051
|
if (config2.dmg.background) {
|
|
1041
1052
|
result.dmg.background = resolvePath(config2.dmg.background);
|
|
@@ -1627,15 +1638,6 @@ var full_default = (context) => {
|
|
|
1627
1638
|
},
|
|
1628
1639
|
minLength: 1
|
|
1629
1640
|
},
|
|
1630
|
-
provisioningProfile: {
|
|
1631
|
-
type: "string",
|
|
1632
|
-
file: {
|
|
1633
|
-
from: context.projectRoot,
|
|
1634
|
-
extensions: ["provisionprofile"],
|
|
1635
|
-
mustBeFile: true
|
|
1636
|
-
},
|
|
1637
|
-
minLength: 1
|
|
1638
|
-
},
|
|
1639
1641
|
extendInfo: {
|
|
1640
1642
|
type: "object"
|
|
1641
1643
|
},
|
|
@@ -1654,6 +1656,33 @@ var full_default = (context) => {
|
|
|
1654
1656
|
mas: {
|
|
1655
1657
|
type: "object",
|
|
1656
1658
|
properties: {
|
|
1659
|
+
entitlements: {
|
|
1660
|
+
type: "string",
|
|
1661
|
+
file: {
|
|
1662
|
+
from: context.projectRoot,
|
|
1663
|
+
extensions: ["plist"],
|
|
1664
|
+
mustBeFile: true
|
|
1665
|
+
},
|
|
1666
|
+
minLength: 1
|
|
1667
|
+
},
|
|
1668
|
+
entitlementsInherit: {
|
|
1669
|
+
type: "string",
|
|
1670
|
+
file: {
|
|
1671
|
+
from: context.projectRoot,
|
|
1672
|
+
extensions: ["plist"],
|
|
1673
|
+
mustBeFile: true
|
|
1674
|
+
},
|
|
1675
|
+
minLength: 1
|
|
1676
|
+
},
|
|
1677
|
+
provisioningProfile: {
|
|
1678
|
+
type: "string",
|
|
1679
|
+
file: {
|
|
1680
|
+
from: context.projectRoot,
|
|
1681
|
+
extensions: ["provisionprofile"],
|
|
1682
|
+
mustBeFile: true
|
|
1683
|
+
},
|
|
1684
|
+
minLength: 1
|
|
1685
|
+
},
|
|
1657
1686
|
type: {
|
|
1658
1687
|
type: "string",
|
|
1659
1688
|
enum: ["development", "distribution"]
|
|
@@ -2319,12 +2348,6 @@ async function uploadApplicationSource({
|
|
|
2319
2348
|
to: path9.join("other", "mac", "entitlements.mac.plist")
|
|
2320
2349
|
});
|
|
2321
2350
|
}
|
|
2322
|
-
if (config2.mac.provisioningProfile) {
|
|
2323
|
-
files.push({
|
|
2324
|
-
from: config2.mac.provisioningProfile,
|
|
2325
|
-
to: path9.join("other", "mac", "mas.provisionprofile")
|
|
2326
|
-
});
|
|
2327
|
-
}
|
|
2328
2351
|
if (config2.mac.icon) {
|
|
2329
2352
|
files.push({
|
|
2330
2353
|
from: config2.mac.icon,
|
|
@@ -2338,6 +2361,26 @@ async function uploadApplicationSource({
|
|
|
2338
2361
|
});
|
|
2339
2362
|
}
|
|
2340
2363
|
}
|
|
2364
|
+
if (config2.mas) {
|
|
2365
|
+
if (config2.mas.entitlements) {
|
|
2366
|
+
files.push({
|
|
2367
|
+
from: config2.mas.entitlements,
|
|
2368
|
+
to: path9.join("other", "mac", "entitlements.mas.plist")
|
|
2369
|
+
});
|
|
2370
|
+
}
|
|
2371
|
+
if (config2.mas.entitlementsInherit) {
|
|
2372
|
+
files.push({
|
|
2373
|
+
from: config2.mas.entitlementsInherit,
|
|
2374
|
+
to: path9.join("other", "mac", "entitlementsInherit.mas.plist")
|
|
2375
|
+
});
|
|
2376
|
+
}
|
|
2377
|
+
if (config2.mas.provisioningProfile) {
|
|
2378
|
+
files.push({
|
|
2379
|
+
from: config2.mas.provisioningProfile,
|
|
2380
|
+
to: path9.join("other", "mac", "mas.provisionprofile")
|
|
2381
|
+
});
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2341
2384
|
if (config2.dmg) {
|
|
2342
2385
|
if (config2.dmg.background) {
|
|
2343
2386
|
files.push({
|
|
@@ -4308,13 +4351,20 @@ function isTestRunning(build) {
|
|
|
4308
4351
|
const { isFinished } = makeProgress(build);
|
|
4309
4352
|
return !isFinished;
|
|
4310
4353
|
}
|
|
4354
|
+
var defaultVM = {
|
|
4355
|
+
cpu: "",
|
|
4356
|
+
agentVersion: "",
|
|
4357
|
+
image: "",
|
|
4358
|
+
imageVersion: ""
|
|
4359
|
+
};
|
|
4311
4360
|
function makeProgress(build) {
|
|
4312
4361
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
4313
4362
|
const defaultProgress = {
|
|
4314
4363
|
message: "Starting",
|
|
4315
4364
|
progress: 0,
|
|
4316
4365
|
state: "progress",
|
|
4317
|
-
shouldSkip: false
|
|
4366
|
+
shouldSkip: false,
|
|
4367
|
+
vm: defaultVM
|
|
4318
4368
|
};
|
|
4319
4369
|
const linux = {
|
|
4320
4370
|
...defaultProgress,
|
|
@@ -5201,7 +5251,7 @@ var package_default = {
|
|
|
5201
5251
|
access: "public"
|
|
5202
5252
|
},
|
|
5203
5253
|
name: "@todesktop/cli",
|
|
5204
|
-
version: "1.9.
|
|
5254
|
+
version: "1.9.2",
|
|
5205
5255
|
license: "MIT",
|
|
5206
5256
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
5207
5257
|
homepage: "https://todesktop.com/cli",
|
|
@@ -5282,7 +5332,7 @@ var package_default = {
|
|
|
5282
5332
|
"xdg-basedir": "^4.0.0"
|
|
5283
5333
|
},
|
|
5284
5334
|
devDependencies: {
|
|
5285
|
-
"@todesktop/shared": "^7.188.
|
|
5335
|
+
"@todesktop/shared": "^7.188.30",
|
|
5286
5336
|
"@types/bunyan": "^1.8.6",
|
|
5287
5337
|
"@types/node": "^20.8.4",
|
|
5288
5338
|
"@types/react": "^18.0.26",
|