@noldova/desktop.build 0.0.0-stage → 0.0.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.
Files changed (340) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -2
  3. package/api/index.d.ts +56 -0
  4. package/api/index.js +9 -0
  5. package/api/index.js.map +1 -0
  6. package/assets/installer/installer.nsh +154 -0
  7. package/assets/licenses/fonts/INCONSOLATA-OFL.txt +93 -0
  8. package/assets/licenses/fonts/INTER-OFL.txt +92 -0
  9. package/assets/licenses/third-party/@xterm+addon-serialize-0.14.0.txt +21 -0
  10. package/assets/licenses/third-party/@xterm+headless-6.0.0.txt +21 -0
  11. package/assets/licenses/third-party/lazy-val-1.0.5.txt +21 -0
  12. package/assets/licenses/third-party/standardwebhooks-1.1.1.txt +21 -0
  13. package/assets/macos/entitlements.plist +15 -0
  14. package/exceptions/build.exception.js +14 -0
  15. package/exceptions/build.exception.js.map +1 -0
  16. package/exceptions/github-request.exception.js +23 -0
  17. package/exceptions/github-request.exception.js.map +1 -0
  18. package/exceptions/process-timeout.exception.js +19 -0
  19. package/exceptions/process-timeout.exception.js.map +1 -0
  20. package/interfaces/i-feed-file.js +9 -0
  21. package/interfaces/i-feed-file.js.map +1 -0
  22. package/interfaces/i-fixture-package.js +9 -0
  23. package/interfaces/i-fixture-package.js.map +1 -0
  24. package/interfaces/i-killed-copy-session.js +9 -0
  25. package/interfaces/i-killed-copy-session.js.map +1 -0
  26. package/interfaces/i-listed-module.js +9 -0
  27. package/interfaces/i-listed-module.js.map +1 -0
  28. package/interfaces/i-module-declaration-json.js +9 -0
  29. package/interfaces/i-module-declaration-json.js.map +1 -0
  30. package/interfaces/i-module-settings-file.js +9 -0
  31. package/interfaces/i-module-settings-file.js.map +1 -0
  32. package/interfaces/i-package-signing.js +9 -0
  33. package/interfaces/i-package-signing.js.map +1 -0
  34. package/interfaces/i-process-record.js +9 -0
  35. package/interfaces/i-process-record.js.map +1 -0
  36. package/interfaces/i-retry-clock.js +9 -0
  37. package/interfaces/i-retry-clock.js.map +1 -0
  38. package/interfaces/i-settings-page-json.js +9 -0
  39. package/interfaces/i-settings-page-json.js.map +1 -0
  40. package/interfaces/i-smoke-copy.js +9 -0
  41. package/interfaces/i-smoke-copy.js.map +1 -0
  42. package/interfaces/i-web-view-key-json.js +9 -0
  43. package/interfaces/i-web-view-key-json.js.map +1 -0
  44. package/interfaces/i-window-wait.js +9 -0
  45. package/interfaces/i-window-wait.js.map +1 -0
  46. package/models/modules/build-variant.js +21 -0
  47. package/models/modules/build-variant.js.map +1 -0
  48. package/models/modules/menu-group.js +27 -0
  49. package/models/modules/menu-group.js.map +1 -0
  50. package/models/modules/menu-item.js +30 -0
  51. package/models/modules/menu-item.js.map +1 -0
  52. package/models/modules/menu-place.js +27 -0
  53. package/models/modules/menu-place.js.map +1 -0
  54. package/models/modules/module-declaration.js +273 -0
  55. package/models/modules/module-declaration.js.map +1 -0
  56. package/models/modules/module-inventory.js +16 -0
  57. package/models/modules/module-inventory.js.map +1 -0
  58. package/models/modules/toolbar-placement.js +29 -0
  59. package/models/modules/toolbar-placement.js.map +1 -0
  60. package/models/modules/version-range.js +60 -0
  61. package/models/modules/version-range.js.map +1 -0
  62. package/models/modules/web-view-keys.js +36 -0
  63. package/models/modules/web-view-keys.js.map +1 -0
  64. package/models/packages/build-record.js +30 -0
  65. package/models/packages/build-record.js.map +1 -0
  66. package/models/packages/package-manifest.js +135 -0
  67. package/models/packages/package-manifest.js.map +1 -0
  68. package/models/packages/package-versions.js +50 -0
  69. package/models/packages/package-versions.js.map +1 -0
  70. package/models/packages/product-about.js +24 -0
  71. package/models/packages/product-about.js.map +1 -0
  72. package/models/packages/product-identity.js +141 -0
  73. package/models/packages/product-identity.js.map +1 -0
  74. package/models/packages/root-manifest.js +86 -0
  75. package/models/packages/root-manifest.js.map +1 -0
  76. package/models/packaging/accepted-licenses.js +36 -0
  77. package/models/packaging/accepted-licenses.js.map +1 -0
  78. package/models/packaging/company-package.js +117 -0
  79. package/models/packaging/company-package.js.map +1 -0
  80. package/models/packaging/installed-package.js +20 -0
  81. package/models/packaging/installed-package.js.map +1 -0
  82. package/models/packaging/license-expression.js +39 -0
  83. package/models/packaging/license-expression.js.map +1 -0
  84. package/models/packaging/locked-package.js +65 -0
  85. package/models/packaging/locked-package.js.map +1 -0
  86. package/models/packaging/omitted-optionals.js +29 -0
  87. package/models/packaging/omitted-optionals.js.map +1 -0
  88. package/models/packaging/package-report.js +35 -0
  89. package/models/packaging/package-report.js.map +1 -0
  90. package/models/packaging/package-target.js +50 -0
  91. package/models/packaging/package-target.js.map +1 -0
  92. package/models/packaging/packaging-section.js +55 -0
  93. package/models/packaging/packaging-section.js.map +1 -0
  94. package/models/packaging/pinned-package.js +18 -0
  95. package/models/packaging/pinned-package.js.map +1 -0
  96. package/models/packaging/tar-archive.js +96 -0
  97. package/models/packaging/tar-archive.js.map +1 -0
  98. package/models/packaging/tar-file.js +20 -0
  99. package/models/packaging/tar-file.js.map +1 -0
  100. package/models/packaging/third-party-package.js +94 -0
  101. package/models/packaging/third-party-package.js.map +1 -0
  102. package/models/packaging/type-only-peers.js +39 -0
  103. package/models/packaging/type-only-peers.js.map +1 -0
  104. package/models/packaging/windows-publisher.js +19 -0
  105. package/models/packaging/windows-publisher.js.map +1 -0
  106. package/models/packaging/windows-signing-account.js +40 -0
  107. package/models/packaging/windows-signing-account.js.map +1 -0
  108. package/models/processes/process-result.js +24 -0
  109. package/models/processes/process-result.js.map +1 -0
  110. package/models/release/github-release-asset.js +28 -0
  111. package/models/release/github-release-asset.js.map +1 -0
  112. package/models/release/github-release.js +30 -0
  113. package/models/release/github-release.js.map +1 -0
  114. package/models/release/package-digest.js +38 -0
  115. package/models/release/package-digest.js.map +1 -0
  116. package/models/release/release-file.js +16 -0
  117. package/models/release/release-file.js.map +1 -0
  118. package/models/release/release-request.js +32 -0
  119. package/models/release/release-request.js.map +1 -0
  120. package/models/release/release-version.js +44 -0
  121. package/models/release/release-version.js.map +1 -0
  122. package/models/structure/scanned-source.js +22 -0
  123. package/models/structure/scanned-source.js.map +1 -0
  124. package/models/structure/source-literal.js +16 -0
  125. package/models/structure/source-literal.js.map +1 -0
  126. package/models/workflows/build-matrix.js +20 -0
  127. package/models/workflows/build-matrix.js.map +1 -0
  128. package/models/workflows/build-target.js +24 -0
  129. package/models/workflows/build-target.js.map +1 -0
  130. package/package.json +47 -3
  131. package/resources.js +3646 -0
  132. package/resources.js.map +1 -0
  133. package/services/angular/about-logo.js +39 -0
  134. package/services/angular/about-logo.js.map +1 -0
  135. package/services/angular/angular-project.js +170 -0
  136. package/services/angular/angular-project.js.map +1 -0
  137. package/services/angular/gallery-file.js +31 -0
  138. package/services/angular/gallery-file.js.map +1 -0
  139. package/services/angular/installed-copies.js +44 -0
  140. package/services/angular/installed-copies.js.map +1 -0
  141. package/services/angular/product-file.js +35 -0
  142. package/services/angular/product-file.js.map +1 -0
  143. package/services/build-command-line.js +96 -0
  144. package/services/build-command-line.js.map +1 -0
  145. package/services/commands/build.js +98 -0
  146. package/services/commands/build.js.map +1 -0
  147. package/services/commands/choose-feed.js +61 -0
  148. package/services/commands/choose-feed.js.map +1 -0
  149. package/services/commands/desktop-tools-command.js +31 -0
  150. package/services/commands/desktop-tools-command.js.map +1 -0
  151. package/services/commands/feed-check.js +180 -0
  152. package/services/commands/feed-check.js.map +1 -0
  153. package/services/commands/install.js +34 -0
  154. package/services/commands/install.js.map +1 -0
  155. package/services/commands/list-targets.js +66 -0
  156. package/services/commands/list-targets.js.map +1 -0
  157. package/services/commands/module-range.js +84 -0
  158. package/services/commands/module-range.js.map +1 -0
  159. package/services/commands/noldova-desktop-range.js +33 -0
  160. package/services/commands/noldova-desktop-range.js.map +1 -0
  161. package/services/commands/package-smoke.js +497 -0
  162. package/services/commands/package-smoke.js.map +1 -0
  163. package/services/commands/package.js +131 -0
  164. package/services/commands/package.js.map +1 -0
  165. package/services/commands/release-assets.js +67 -0
  166. package/services/commands/release-assets.js.map +1 -0
  167. package/services/commands/release-check.js +86 -0
  168. package/services/commands/release-check.js.map +1 -0
  169. package/services/commands/release-publish.js +91 -0
  170. package/services/commands/release-publish.js.map +1 -0
  171. package/services/commands/start.js +36 -0
  172. package/services/commands/start.js.map +1 -0
  173. package/services/desktop/development-binary.js +162 -0
  174. package/services/desktop/development-binary.js.map +1 -0
  175. package/services/desktop/electron-binary.js +38 -0
  176. package/services/desktop/electron-binary.js.map +1 -0
  177. package/services/desktop/sandbox.validator.js +39 -0
  178. package/services/desktop/sandbox.validator.js.map +1 -0
  179. package/services/desktop/user-namespaces.js +28 -0
  180. package/services/desktop/user-namespaces.js.map +1 -0
  181. package/services/files/file-errors.js +22 -0
  182. package/services/files/file-errors.js.map +1 -0
  183. package/services/modules/module-artifacts.js +46 -0
  184. package/services/modules/module-artifacts.js.map +1 -0
  185. package/services/modules/module-catalog.js +371 -0
  186. package/services/modules/module-catalog.js.map +1 -0
  187. package/services/modules/module-cli-commands.js +127 -0
  188. package/services/modules/module-cli-commands.js.map +1 -0
  189. package/services/modules/module-menus.js +195 -0
  190. package/services/modules/module-menus.js.map +1 -0
  191. package/services/modules/module-settings.js +140 -0
  192. package/services/modules/module-settings.js.map +1 -0
  193. package/services/modules/module-web-views.js +136 -0
  194. package/services/modules/module-web-views.js.map +1 -0
  195. package/services/ordering/dependency-order.js +34 -0
  196. package/services/ordering/dependency-order.js.map +1 -0
  197. package/services/packages/addon-builder.js +83 -0
  198. package/services/packages/addon-builder.js.map +1 -0
  199. package/services/packages/archive.reader.js +52 -0
  200. package/services/packages/archive.reader.js.map +1 -0
  201. package/services/packages/build-layout.js +67 -0
  202. package/services/packages/build-layout.js.map +1 -0
  203. package/services/packages/build-product.js +51 -0
  204. package/services/packages/build-product.js.map +1 -0
  205. package/services/packages/content-hash.js +34 -0
  206. package/services/packages/content-hash.js.map +1 -0
  207. package/services/packages/import-closure.js +42 -0
  208. package/services/packages/import-closure.js.map +1 -0
  209. package/services/packages/installed-packages.js +73 -0
  210. package/services/packages/installed-packages.js.map +1 -0
  211. package/services/packages/installed-tree-check.js +53 -0
  212. package/services/packages/installed-tree-check.js.map +1 -0
  213. package/services/packages/module-window-imports.js +69 -0
  214. package/services/packages/module-window-imports.js.map +1 -0
  215. package/services/packages/once-hash.js +22 -0
  216. package/services/packages/once-hash.js.map +1 -0
  217. package/services/packages/package-build.js +336 -0
  218. package/services/packages/package-build.js.map +1 -0
  219. package/services/packages/package-builder.js +194 -0
  220. package/services/packages/package-builder.js.map +1 -0
  221. package/services/packages/package-catalog.js +57 -0
  222. package/services/packages/package-catalog.js.map +1 -0
  223. package/services/packages/package-naming.js +90 -0
  224. package/services/packages/package-naming.js.map +1 -0
  225. package/services/packages/update-feed.js +26 -0
  226. package/services/packages/update-feed.js.map +1 -0
  227. package/services/packaging/apple-signature-check.js +90 -0
  228. package/services/packaging/apple-signature-check.js.map +1 -0
  229. package/services/packaging/asar-archive.js +79 -0
  230. package/services/packaging/asar-archive.js.map +1 -0
  231. package/services/packaging/authenticode-check.js +62 -0
  232. package/services/packaging/authenticode-check.js.map +1 -0
  233. package/services/packaging/debian-install.js +94 -0
  234. package/services/packaging/debian-install.js.map +1 -0
  235. package/services/packaging/electron-distribution.js +43 -0
  236. package/services/packaging/electron-distribution.js.map +1 -0
  237. package/services/packaging/extracted-copy.js +24 -0
  238. package/services/packaging/extracted-copy.js.map +1 -0
  239. package/services/packaging/file-holders.js +26 -0
  240. package/services/packaging/file-holders.js.map +1 -0
  241. package/services/packaging/foreign-addons.js +66 -0
  242. package/services/packaging/foreign-addons.js.map +1 -0
  243. package/services/packaging/mac-signing.js +72 -0
  244. package/services/packaging/mac-signing.js.map +1 -0
  245. package/services/packaging/mac-update-archive-check.js +76 -0
  246. package/services/packaging/mac-update-archive-check.js.map +1 -0
  247. package/services/packaging/mounted-app-image.js +75 -0
  248. package/services/packaging/mounted-app-image.js.map +1 -0
  249. package/services/packaging/native-binaries.js +51 -0
  250. package/services/packaging/native-binaries.js.map +1 -0
  251. package/services/packaging/package-assets.js +33 -0
  252. package/services/packaging/package-assets.js.map +1 -0
  253. package/services/packaging/package-configuration.js +197 -0
  254. package/services/packaging/package-configuration.js.map +1 -0
  255. package/services/packaging/package-installer.js +171 -0
  256. package/services/packaging/package-installer.js.map +1 -0
  257. package/services/packaging/package-layout.js +61 -0
  258. package/services/packaging/package-layout.js.map +1 -0
  259. package/services/packaging/package-stage.js +146 -0
  260. package/services/packaging/package-stage.js.map +1 -0
  261. package/services/packaging/packaged-architecture.js +59 -0
  262. package/services/packaging/packaged-architecture.js.map +1 -0
  263. package/services/packaging/packaged-build.js +41 -0
  264. package/services/packaging/packaged-build.js.map +1 -0
  265. package/services/packaging/packaged-modules.js +55 -0
  266. package/services/packaging/packaged-modules.js.map +1 -0
  267. package/services/packaging/packaged-publisher-check.js +43 -0
  268. package/services/packaging/packaged-publisher-check.js.map +1 -0
  269. package/services/packaging/packaged-sandbox.js +86 -0
  270. package/services/packaging/packaged-sandbox.js.map +1 -0
  271. package/services/packaging/packaged-unpacked-files.js +60 -0
  272. package/services/packaging/packaged-unpacked-files.js.map +1 -0
  273. package/services/packaging/packaged-window.js +68 -0
  274. package/services/packaging/packaged-window.js.map +1 -0
  275. package/services/packaging/runtime-mount-check.js +33 -0
  276. package/services/packaging/runtime-mount-check.js.map +1 -0
  277. package/services/packaging/shipped-files.js +67 -0
  278. package/services/packaging/shipped-files.js.map +1 -0
  279. package/services/packaging/signing-credentials.js +18 -0
  280. package/services/packaging/signing-credentials.js.map +1 -0
  281. package/services/packaging/smoke-answer.js +22 -0
  282. package/services/packaging/smoke-answer.js.map +1 -0
  283. package/services/packaging/third-party-closure.js +175 -0
  284. package/services/packaging/third-party-closure.js.map +1 -0
  285. package/services/packaging/trusted-signing-module.js +118 -0
  286. package/services/packaging/trusted-signing-module.js.map +1 -0
  287. package/services/packaging/unpacked-files.js +108 -0
  288. package/services/packaging/unpacked-files.js.map +1 -0
  289. package/services/packaging/user-path.js +46 -0
  290. package/services/packaging/user-path.js.map +1 -0
  291. package/services/packaging/windows-sign-hook.js +14 -0
  292. package/services/packaging/windows-sign-hook.js.map +1 -0
  293. package/services/packaging/windows-signing.js +64 -0
  294. package/services/packaging/windows-signing.js.map +1 -0
  295. package/services/processes/executable-locator.js +36 -0
  296. package/services/processes/executable-locator.js.map +1 -0
  297. package/services/processes/process-runner.js +89 -0
  298. package/services/processes/process-runner.js.map +1 -0
  299. package/services/processes/retried-download.js +28 -0
  300. package/services/processes/retried-download.js.map +1 -0
  301. package/services/processes/started-process.js +47 -0
  302. package/services/processes/started-process.js.map +1 -0
  303. package/services/processes/temporary-folder.js +23 -0
  304. package/services/processes/temporary-folder.js.map +1 -0
  305. package/services/release/release-file-set.js +86 -0
  306. package/services/release/release-file-set.js.map +1 -0
  307. package/services/release/release-notes.js +45 -0
  308. package/services/release/release-notes.js.map +1 -0
  309. package/services/release/release-publisher.js +135 -0
  310. package/services/release/release-publisher.js.map +1 -0
  311. package/services/release/release-reports.js +84 -0
  312. package/services/release/release-reports.js.map +1 -0
  313. package/services/release/release-settings.js +31 -0
  314. package/services/release/release-settings.js.map +1 -0
  315. package/services/release/release-signing.js +36 -0
  316. package/services/release/release-signing.js.map +1 -0
  317. package/services/release/release-tag.js +28 -0
  318. package/services/release/release-tag.js.map +1 -0
  319. package/services/release/release-targets.js +34 -0
  320. package/services/release/release-targets.js.map +1 -0
  321. package/services/release/supported-targets.js +39 -0
  322. package/services/release/supported-targets.js.map +1 -0
  323. package/services/release/update-metadata.js +38 -0
  324. package/services/release/update-metadata.js.map +1 -0
  325. package/services/release-command-line.js +55 -0
  326. package/services/release-command-line.js.map +1 -0
  327. package/services/repository/git.js +30 -0
  328. package/services/repository/git.js.map +1 -0
  329. package/services/repository/github-api.js +93 -0
  330. package/services/repository/github-api.js.map +1 -0
  331. package/services/repository/github-json.js +50 -0
  332. package/services/repository/github-json.js.map +1 -0
  333. package/services/structure/source-scanner.js +197 -0
  334. package/services/structure/source-scanner.js.map +1 -0
  335. package/services/toolchain/node-gyp.js +26 -0
  336. package/services/toolchain/node-gyp.js.map +1 -0
  337. package/services/toolchain/npm-command.js +25 -0
  338. package/services/toolchain/npm-command.js.map +1 -0
  339. package/services/toolchain/typescript-compiler.js +16 -0
  340. package/services/toolchain/typescript-compiler.js.map +1 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Noldova
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,62 @@
1
- # Temporary Holding Version
1
+ # Build
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Scope:** The `noldova-desktop-build` command line, `src/noldova.desktop.build`, which builds, starts, packages and releases an app, under the [build rules](../../documents/BUILD.md).
4
+
5
+ ## 1. Purpose
6
+
7
+ An app on Noldova Desktop installs `@noldova/desktop.build` as a dev dependency and runs its bin, `noldova-desktop-build`, in the app's own folder.
8
+ It reads the app's identity, version and module list from the `desktop` section of the app's root `package.json`, as [BUILD.md](../../documents/BUILD.md#an-apps-inputs) says, and needs nothing else from the app's repository.
9
+ Noldova Desktop builds itself with the same package, run from its source.
10
+
11
+ ## 2. Use in an app
12
+
13
+ An app installs the package and Electron at the exact versions its Noldova Desktop version pins, and names the commands in its own scripts:
14
+
15
+ ```json
16
+ {
17
+ "scripts": {
18
+ "install:app": "noldova-desktop-build install",
19
+ "build": "noldova-desktop-build build",
20
+ "start": "noldova-desktop-build start",
21
+ "package": "noldova-desktop-build package",
22
+ "package:smoke": "noldova-desktop-build package-smoke",
23
+ "release:check": "noldova-desktop-build release-check",
24
+ "release:assets": "noldova-desktop-build release-assets",
25
+ "release:publish": "noldova-desktop-build release-publish"
26
+ }
27
+ }
28
+ ```
29
+
30
+ An app's `src/` holds only package folders, and one of them is its window app, the folder whose name ends in `.window.app`, with its `angular.json`, its `package.json`, its TypeScript configuration and its `src/`.
31
+ The app's root `package.json` names the window app among its `workspaces`, so the app has one lockfile and one `node_modules`, at its root.
32
+ The window app's `package.json` names `@noldova/desktop.window` and `@noldova/ui.components.angular` at those versions and each Angular package the window package peers on, at the exact version it names, and Playwright only when an `angular.json` has a test target, as [BUILD.md](../../documents/BUILD.md#the-build-package) says.
33
+ The whole app, its build included, uses one TypeScript, the version the package pins, which Angular's compiler also takes.
34
+
35
+ ## 3. Commands
36
+
37
+ | Command | What it does |
38
+ |---|---|
39
+ | `install` | Installs the app from its root lockfile with `npm ci`, when the lockfile changed since its last install, and the browser for the Angular tests when an `angular.json` has a test target. It is the only command that needs the registry's token. |
40
+ | `build [--test [--without <module id>]... \| --packaged] [--output <folder> [--update-feed <URL>]]` | Builds the app's packages and modules, writes `_build/product.json` and the generated window sources, and builds the window. `--test` adds the fixture modules and `--packaged` builds what a package ships; either may write to its own `--output` folder, with a test update feed. |
41
+ | `build --list-copies` | Builds nothing and prints each file the build copies unchanged into a package that its `files` keep in the archive, one line for each: its source's path from the app's folder, the package's name and its path inside the package, separated by tabs, then `end of copies`, also when it copies nothing. |
42
+ | `start [<argument>...]` | Starts the development app on the build, passing the arguments to its main process. |
43
+ | `desktop-tools <command> [<option>...]` | Runs the app's command line on the development app. |
44
+ | `package [--signed] [--update-feed <URL>]` | Packages the app for the machine's own platform and processor; `--signed` signs it with the credentials in the environment. |
45
+ | `package-smoke [--remove-leftover \| --require-sandbox \| --no-sandbox]` | On Windows first removes what an earlier run left installed, its install folder and its command's entry on the user's Path, then installs the package just made, checks that its cookie encryption is on exactly when a module declares web views and that its product file's Windows publisher is `WINDOWS_PUBLISHER`, or none when that is not set, starts it on data and device folders of its own, and checks its build, its version, its command and that it quits. With `--remove-leftover` it only removes such a leftover, for a step that runs after a failed or cancelled smoke. On Linux it also checks Chromium's sandbox in the started app's processes: on, with every renderer under a seccomp filter, where the AppImage launcher's probe `unshare -Ur true` succeeds, and off, with `--no-sandbox`, where it fails; `--require-sandbox` skips the probe and requires the sandbox on in the started app's processes, and `--no-sandbox` starts the app without the sandbox and requires it off. |
46
+ | `list-targets [<app folder>]` | Prints the release's targets and the runners each builds on, from the organization's variables; with the app's folder, only the x64 targets it builds, Linux and Windows x64 and those its `desktop.supportedTargets` lists, or every x64 target when it has no such field. |
47
+ | `release-check` | Checks that a release may start: its version is the root manifest's and newer than every release, and its revision is on `main` with a passing Build and test run; it says which platforms the release signs. |
48
+ | `release-assets [--update-feed <URL>]` | Collects a target's packages, checksums and update information for the release; with `--update-feed`, an HTTPS URL or a loopback HTTP URL ending in `/`, for packages that check that feed, in a test of updating or for the internal update feed. |
49
+ | `release-publish` | Publishes the release with the files its run built and checked; with `RELEASE_UPDATE_FEED` set, for a test of updating, it publishes nothing, and with `RELEASE_INTERNAL_VERSION` set, for the internal update feed, it checks the files for that version and publishes nothing. |
50
+
51
+ `build` refuses an app that `install` hasn't installed for its current lockfile, and says to run `install`.
52
+ After it installs the packages it builds into the app's `node_modules`, it refuses a second copy of an Angular, Noldova Desktop, context or kit package anywhere in the app's install, an Angular package that a package of the runtime, Electron, the command line, the protocol or the build reaches, and a module's window part that imports by name a package its module's package doesn't list, as [MODULES.md](../../documents/MODULES.md#what-fails-closed) says.
53
+ The script that runs `install` takes another name than `install`, such as `install:app`, since npm runs a script named `install` on every `npm install`.
54
+
55
+ An unknown or missing command prints the usage and exits with code 2.
56
+
57
+ The package's second bin, `noldova-desktop-release`, runs `list-targets`, `release-check` and `release-publish`, and `choose-feed`, `feed-check`, `module-range` and `noldova-desktop-range`, which only it runs.
58
+ `choose-feed` takes a release's `INTERNAL_FEED`, `INTERNAL_FEED_URL`, `UPDATE_FEED`, `PACKAGE_VERSION`, `RELEASE_VERSION`, `RUN_NUMBER`, `RUN_ATTEMPT` and `SIGNING`, the platforms `release-check` says it signs, and writes the update feed and the packages' version as the step's `update-feed` and `package-version` outputs, or refuses a release that breaks the internal update feed's rules in [BUILD.md](../../documents/BUILD.md); without `GITHUB_OUTPUT` it refuses to choose.
59
+ `feed-check` reads an update feed anonymously, `FEED_URL` or the latest release of `RELEASE_REPOSITORY`, and checks that each target `RELEASE_TARGETS` lists has update information naming `FEED_VERSION`, and that every file it lists is there with its SHA-512 and size; it tries again for up to `FEED_WAIT_SECONDS`, 600 by default, while a target's update information is missing or names another version, refuses a `FEED_URL` with user info, a query or a fragment without showing it, follows a redirect only within the feed's origin or to GitHub's release asset host, and refuses a file that leads to a web page, such as a sign-in page; it checks nothing when `SKIP_FEED_CHECK` is `true`.
60
+ `module-range <module folder>` reads the folder's `module.json`, refuses a `noldovaDesktop` that is missing, of another form than `>=<lowest> <first refused>`, or that doesn't end below the next version that may break modules after its lowest, the next minor below 1.0 and the next major from 1.0, and writes the range and the newest version of `PUBLISHED_VERSIONS`, the JSON `npm view` gives, inside it as the step's `range` and `version` outputs; without `GITHUB_OUTPUT` it refuses to choose.
61
+ `noldova-desktop-range <version>` prints the range a module whose lowest Noldova Desktop version is that version writes, such as `>=0.0.72 <0.1.0`.
62
+ It loads only Node.js's own modules and context's core, exceptions and json packages, so a release job runs it as `node package/services/release-command-line.js <command>` from the package's archive, with those three unpacked into `node_modules` beside it, each checked against the app's lockfile, without an install; any other command prints its usage and exits with code 2.
package/api/index.d.ts ADDED
@@ -0,0 +1,56 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+
9
+ import type { Writable } from "node:stream";
10
+
11
+ /**
12
+ * The `noldova-desktop-build` command line, which builds, starts, packages
13
+ * and releases an app from the `desktop` section of its root `package.json`.
14
+ *
15
+ * @remarks
16
+ * An app runs it through the package's bin, usually from its own
17
+ * `package.json` scripts, such as `"build": "noldova-desktop-build build"`.
18
+ * Its commands are `install`, `build`, `start`, `desktop-tools`, `package`,
19
+ * `package-smoke`, `list-targets`, `release-check`, `release-assets` and
20
+ * `release-publish`; each takes the arguments that follow it, as the
21
+ * package's README describes.
22
+ */
23
+ export declare class BuildCommandLine {
24
+ /**
25
+ * Creates the command line.
26
+ *
27
+ * @param folder The app's folder, which holds its root `package.json`;
28
+ * usually the current folder.
29
+ * @param environment The environment the commands read, such as signing
30
+ * credentials and release settings, and pass to the programs they run.
31
+ * @param platform The platform the commands build for, as Node.js's
32
+ * `process.platform` names it.
33
+ * @param architecture The processor the commands build for, as Node.js's
34
+ * `process.arch` names it.
35
+ * @param output Where the commands write their progress and results.
36
+ * @param errors Where the usage and some failures are written.
37
+ */
38
+ public constructor(folder: string, environment: NodeJS.ProcessEnv, platform: string, architecture: string, output: Writable, errors: Writable);
39
+
40
+ /**
41
+ * Runs one command.
42
+ *
43
+ * @param commandArguments The command's name, then its arguments.
44
+ * @returns A promise of the exit code: 0 when the command succeeded, 2 with
45
+ * the usage on standard error for an unknown or missing command, and the
46
+ * command's own code otherwise.
47
+ * @example
48
+ * ```ts
49
+ * import { BuildCommandLine } from "@noldova/desktop.build";
50
+ *
51
+ * process.exitCode = await new BuildCommandLine(process.cwd(), process.env, process.platform, process.arch, process.stdout, process.stderr)
52
+ * .runAsync(["build"]);
53
+ * ```
54
+ */
55
+ public runAsync(commandArguments: readonly string[]): Promise<number>;
56
+ }
package/api/index.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export { BuildCommandLine } from "../services/build-command-line.js";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.build/src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,154 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+
9
+ !include "FileFunc.nsh"
10
+ !include "LogicLib.nsh"
11
+ !include "WinMessages.nsh"
12
+ !include "WordFunc.nsh"
13
+
14
+ !if ${NSIS_MAX_STRLEN} < 8192
15
+ !error "The command folder's Path entry needs NSIS strings of at least 8192 characters."
16
+ !endif
17
+
18
+ !define /math COMMAND_PATH_LIMIT ${NSIS_MAX_STRLEN} - 1
19
+ !define COMMAND_FOLDER "$INSTDIR\bin"
20
+ !define REMOVE_ATTEMPTS 60
21
+ !define REMOVE_PAUSE 500
22
+
23
+ !macro announceEnvironment
24
+ SendMessage ${HWND_BROADCAST} ${WM_SETTINGCHANGE} 0 "STR:Environment" /TIMEOUT=5000
25
+ !macroend
26
+
27
+ !macro listLeftovers RESULT
28
+ StrCpy ${RESULT} ""
29
+ ClearErrors
30
+ FindFirst $R3 $R4 "$INSTDIR\*.*"
31
+ ${DoUntil} $R4 == ""
32
+ ${If} $R4 != "."
33
+ ${AndIf} $R4 != ".."
34
+ ${AndIf} $R4 != "${UNINSTALL_FILENAME}"
35
+ StrCpy ${RESULT} "${RESULT}, $R4"
36
+ ${EndIf}
37
+ FindNext $R3 $R4
38
+ ${Loop}
39
+ FindClose $R3
40
+ StrCpy ${RESULT} ${RESULT} "" 2
41
+ !macroend
42
+
43
+ !macro removeProgramFiles
44
+ Push $R0
45
+ Push $R1
46
+ Push $R2
47
+ Push $R3
48
+ Push $R4
49
+ SetOutPath $TEMP
50
+ StrCpy $R0 0
51
+ ${Do}
52
+ RMDir /r $INSTDIR
53
+ !insertmacro listLeftovers $R1
54
+ ${If} $R1 == ""
55
+ ${OrIf} $R0 >= ${REMOVE_ATTEMPTS}
56
+ ${ExitDo}
57
+ ${EndIf}
58
+ Sleep ${REMOVE_PAUSE}
59
+ IntOp $R0 $R0 + 1
60
+ ${Loop}
61
+ ${If} $R1 != ""
62
+ DetailPrint "Other programs still use $R1 in $INSTDIR, so the uninstall left them there."
63
+ ${GetParameters} $R2
64
+ ClearErrors
65
+ ${GetOptions} $R2 "/S" $R3
66
+ ${If} ${Errors}
67
+ MessageBox MB_OK|MB_ICONEXCLAMATION "${PRODUCT_NAME} is uninstalled, but other programs still use $R1 in $INSTDIR. Delete that folder once nothing uses it."
68
+ ${EndIf}
69
+ ${EndIf}
70
+ Pop $R4
71
+ Pop $R3
72
+ Pop $R2
73
+ Pop $R1
74
+ Pop $R0
75
+ !macroend
76
+
77
+ !macro customInstall
78
+ Push $R0
79
+ Push $R1
80
+ Push $R2
81
+ Push $R3
82
+ ClearErrors
83
+ ReadRegStr $R0 HKCU "Environment" "Path"
84
+ ${If} ${Errors}
85
+ StrCpy $R1 0
86
+ StrCpy $R3 ""
87
+ ${Do}
88
+ ClearErrors
89
+ EnumRegValue $R2 HKCU "Environment" $R1
90
+ ${If} $R2 == "Path"
91
+ StrCpy $R3 "found"
92
+ ${EndIf}
93
+ IntOp $R1 $R1 + 1
94
+ ${LoopUntil} $R2 == ""
95
+ ${If} $R3 == ""
96
+ WriteRegExpandStr HKCU "Environment" "Path" "${COMMAND_FOLDER}"
97
+ !insertmacro announceEnvironment
98
+ ${Else}
99
+ DetailPrint "The user's Path could not be read, so ${COMMAND_FOLDER} was not added to it."
100
+ ${EndIf}
101
+ ${Else}
102
+ StrLen $R1 ";$R0;${COMMAND_FOLDER};"
103
+ ${If} $R1 >= ${COMMAND_PATH_LIMIT}
104
+ DetailPrint "The user's Path is too long to add ${COMMAND_FOLDER} to it."
105
+ ${Else}
106
+ ClearErrors
107
+ ${WordReplace} ";$R0;" ";${COMMAND_FOLDER};" ";" "E+" $R1
108
+ ${If} ${Errors}
109
+ StrCpy $R2 $R0 1 -1
110
+ ${If} $R0 == ""
111
+ StrCpy $R0 "${COMMAND_FOLDER}"
112
+ ${ElseIf} $R2 == ";"
113
+ StrCpy $R0 "$R0${COMMAND_FOLDER};"
114
+ ${Else}
115
+ StrCpy $R0 "$R0;${COMMAND_FOLDER}"
116
+ ${EndIf}
117
+ WriteRegExpandStr HKCU "Environment" "Path" $R0
118
+ !insertmacro announceEnvironment
119
+ ${EndIf}
120
+ ${EndIf}
121
+ ${EndIf}
122
+ Pop $R3
123
+ Pop $R2
124
+ Pop $R1
125
+ Pop $R0
126
+ !macroend
127
+
128
+ !macro customUnInstall
129
+ ${IfNot} ${isUpdated}
130
+ Push $R0
131
+ Push $R1
132
+ ClearErrors
133
+ ReadRegStr $R0 HKCU "Environment" "Path"
134
+ ${IfNot} ${Errors}
135
+ StrLen $R1 ";$R0;"
136
+ ${If} $R1 < ${COMMAND_PATH_LIMIT}
137
+ ClearErrors
138
+ ${WordReplace} ";$R0;" ";${COMMAND_FOLDER};" ";" "E+" $R1
139
+ ${IfNot} ${Errors}
140
+ StrCpy $R1 $R1 -1 1
141
+ ${If} $R1 == ""
142
+ DeleteRegValue HKCU "Environment" "Path"
143
+ ${Else}
144
+ WriteRegExpandStr HKCU "Environment" "Path" $R1
145
+ ${EndIf}
146
+ !insertmacro announceEnvironment
147
+ ${EndIf}
148
+ ${EndIf}
149
+ ${EndIf}
150
+ Pop $R1
151
+ Pop $R0
152
+ !insertmacro removeProgramFiles
153
+ ${EndIf}
154
+ !macroend
@@ -0,0 +1,93 @@
1
+ Copyright 2006 The Inconsolata Project Authors (https://github.com/cyrealtype/Inconsolata)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,92 @@
1
+ Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font creation
14
+ efforts of academic and linguistic communities, and to provide a free and
15
+ open framework in which fonts may be shared and improved in partnership
16
+ with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply
25
+ to any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software components as
36
+ distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to, deleting,
39
+ or substituting -- in part or in whole -- any of the components of the
40
+ Original Version, by changing formats or by porting the Font Software to a
41
+ new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION AND CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
+ redistribute, and sell modified and unmodified copies of the Font
50
+ Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components,
53
+ in Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the corresponding
64
+ Copyright Holder. This restriction only applies to the primary font name as
65
+ presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created
77
+ using the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2017-2019, The xterm.js authors (https://github.com/xtermjs/xterm.js)
2
+ Copyright (c) 2014-2016, SourceLair Private Company (https://www.sourcelair.com)
3
+ Copyright (c) 2012-2013, Christopher Jeffrey (https://github.com/chjj/)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2017-2019, The xterm.js authors (https://github.com/xtermjs/xterm.js)
2
+ Copyright (c) 2014-2016, SourceLair Private Company (https://www.sourcelair.com)
3
+ Copyright (c) 2012-2013, Christopher Jeffrey (https://github.com/chjj/)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Vladimir Krivosheev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2023 Svix (https://www.svix.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ @license
4
+ Copyright (c) Noldova.
5
+
6
+ This source code is licensed under the license found in the
7
+ LICENSE file in the root directory of this source tree.
8
+ -->
9
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
10
+ <plist version="1.0">
11
+ <dict>
12
+ <key>com.apple.security.cs.allow-jit</key>
13
+ <true/>
14
+ </dict>
15
+ </plist>
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Exception } from "@noldova/context.exceptions";
9
+ export class BuildException extends Exception {
10
+ constructor(message, options) {
11
+ super(message, options);
12
+ }
13
+ }
14
+ //# sourceMappingURL=build.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.exception.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.build/src/exceptions/build.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE/E,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C,YAAmB,OAAe,EAAE,OAA0B;QAC5D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { BuildException } from "./build.exception.js";
9
+ import { Resources } from "../resources.js";
10
+ export class GitHubRequestException extends BuildException {
11
+ gitHubArguments;
12
+ exitCode;
13
+ errorOutput;
14
+ status;
15
+ constructor(gitHubArguments, exitCode, errorOutput, status) {
16
+ super(Resources.formatGhFailed(gitHubArguments, exitCode, errorOutput));
17
+ this.gitHubArguments = gitHubArguments;
18
+ this.exitCode = exitCode;
19
+ this.errorOutput = errorOutput;
20
+ this.status = status;
21
+ }
22
+ }
23
+ //# sourceMappingURL=github-request.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-request.exception.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.build/src/exceptions/github-request.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxC,eAAe,CAAoB;IACnC,QAAQ,CAAgB;IACxB,WAAW,CAAS;IACpB,MAAM,CAAgB;IAEtC,YAAmB,eAAkC,EAAE,QAAuB,EAAE,WAAmB,EAAE,MAAqB;QACxH,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,eAAe,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;QAExE,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}