@todesktop/cli 1.12.1 → 1.12.3
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 +14 -0
- package/dist/cli.js +18 -8
- package/dist/cli.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -951,6 +951,12 @@ Default: Default to the common name from your code signing certificate.
|
|
|
951
951
|
|
|
952
952
|
The publisher name, exactly as in your code signing certificate. Several names can be provided. Defaults to common name from your code signing certificate. You should typically not include this property in your configuration unless you wish to transition to a new certificate in the future.
|
|
953
953
|
|
|
954
|
+
### `appBuilderLibVersion` - (optional) string
|
|
955
|
+
|
|
956
|
+
Example: `22.14.13`.
|
|
957
|
+
|
|
958
|
+
The version of app-builder-lib that ToDesktop should use for building your app. This can be useful if you need to use a specific version that includes certain features or fixes.
|
|
959
|
+
|
|
954
960
|
## Build lifecycle hooks (package.json scripts)
|
|
955
961
|
|
|
956
962
|
Sometimes you want to do something before or during the build process. For example, you might want to run a script before the build starts, or you might want to run a script after the files have been packaged. Our lifecycle hooks provide a way to do this.
|
|
@@ -1195,6 +1201,14 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
|
|
|
1195
1201
|
|
|
1196
1202
|
## Changelog
|
|
1197
1203
|
|
|
1204
|
+
### v1.12.3
|
|
1205
|
+
|
|
1206
|
+
- Allow `catalog:` protocol (used by PNPM) for electron dependency version in `package.json`.
|
|
1207
|
+
|
|
1208
|
+
### v1.12.2
|
|
1209
|
+
|
|
1210
|
+
- Fix: Update `appFiles` to not error when no `*.js` files are found (but `*.ts` files are present)
|
|
1211
|
+
|
|
1198
1212
|
### v1.12.1
|
|
1199
1213
|
|
|
1200
1214
|
- Remove sensitive data when logging to `main.log`
|
package/dist/cli.js
CHANGED
|
@@ -1155,11 +1155,19 @@ var packageJSON_default = (context) => {
|
|
|
1155
1155
|
required: ["electron"],
|
|
1156
1156
|
properties: {
|
|
1157
1157
|
electron: {
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1158
|
+
oneOf: [
|
|
1159
|
+
{
|
|
1160
|
+
type: "string",
|
|
1161
|
+
semanticVersion: {
|
|
1162
|
+
packageName: "electron",
|
|
1163
|
+
mustBeExact: true
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
type: "string",
|
|
1168
|
+
pattern: "^catalog:"
|
|
1169
|
+
}
|
|
1170
|
+
]
|
|
1163
1171
|
}
|
|
1164
1172
|
}
|
|
1165
1173
|
},
|
|
@@ -2485,9 +2493,11 @@ var getAppFiles = async (globsInput, appPath, appPkgJson) => {
|
|
|
2485
2493
|
}
|
|
2486
2494
|
if (!absolutePaths || !absolutePaths.length) {
|
|
2487
2495
|
throw new Error("No files found to upload");
|
|
2488
|
-
} else if (!absolutePaths.filter(
|
|
2496
|
+
} else if (!absolutePaths.filter(
|
|
2497
|
+
(absolutePath) => absolutePath.endsWith(".js") || absolutePath.endsWith(".ts")
|
|
2498
|
+
).length) {
|
|
2489
2499
|
throw new Error(
|
|
2490
|
-
`No .js files found to upload (${absolutePaths[0]}). There's likely an issue with the appFiles option. Learn more at https://www.npmjs.com/package/@todesktop/cli#appfiles----optional-array-of-glob-patterns. If this is not the case, please contact us.`
|
|
2500
|
+
`No .js/.ts files found to upload (${absolutePaths[0]}). There's likely an issue with the appFiles option. Learn more at https://www.npmjs.com/package/@todesktop/cli#appfiles----optional-array-of-glob-patterns. If this is not the case, please contact us.`
|
|
2491
2501
|
);
|
|
2492
2502
|
} else {
|
|
2493
2503
|
let mainFilePath = appPath;
|
|
@@ -5505,7 +5515,7 @@ var package_default = {
|
|
|
5505
5515
|
access: "public"
|
|
5506
5516
|
},
|
|
5507
5517
|
name: "@todesktop/cli",
|
|
5508
|
-
version: "1.12.
|
|
5518
|
+
version: "1.12.2",
|
|
5509
5519
|
license: "MIT",
|
|
5510
5520
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
5511
5521
|
homepage: "https://todesktop.com/cli",
|