@stacksjs/defaults 0.75.560 → 0.75.561
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.
|
@@ -438,6 +438,8 @@ buddy dev:desktop # run from source, stx views
|
|
|
438
438
|
buddy build:desktop # this machine's target
|
|
439
439
|
buddy build:desktop --target linux-x64,win32-x64 # cross-compile the agents
|
|
440
440
|
buddy build:desktop --target all --package # also make the installers this OS can make
|
|
441
|
+
buddy build:desktop --identity "Developer ID Application: Example (ABCDE12345)" # macOS: sign with this certificate
|
|
442
|
+
buddy build:desktop --import ./ci-output # add targets built on another machine to this build
|
|
441
443
|
```
|
|
442
444
|
|
|
443
445
|
Output goes to `storage/framework/desktop/webview/<target>/`, with `build.json` listing every artifact.
|
|
@@ -458,7 +460,8 @@ machine's target; else the build fetches it. Craft publishes `craft-<os>-<arch>.
|
|
|
458
460
|
`build:desktop --target ...` downloads the one for the installed `craft-native` version, checks its size and SHA-256
|
|
459
461
|
against that release's `release-manifest.json`, and keeps it unpacked in `storage/framework/desktop/runtimes/<target>/`
|
|
460
462
|
(gitignored; a later build reuses it and a new Craft version replaces it). An app needs no script of its own for
|
|
461
|
-
this. Craft
|
|
463
|
+
this. A machine with no Craft of its own (a CI runner with no `CRAFT_BIN` and no `craft` on PATH) fetches its own
|
|
464
|
+
target's runtime the same way. Craft publishes runtimes for `darwin-arm64`, `darwin-x64`, `linux-x64` and `win32-x64`; the arm64 Linux and
|
|
462
465
|
Windows targets still need a runtime named in the config. `DESKTOP_RUNTIME_FETCH=0` keeps a build off the network.
|
|
463
466
|
|
|
464
467
|
On Windows, `WebView2Loader.dll` is copied into the app from beside the runtime (Craft's archive ships it there)
|
|
@@ -493,11 +496,33 @@ serves. Then per target:
|
|
|
493
496
|
|
|
494
497
|
Artifacts and manifests go through `@stacksjs/storage` to `updates.disk` under `updates.prefix`
|
|
495
498
|
(`desktop-updates/<channel>/<platform>-<arch>/latest.json`, artifacts under `<version>/`), plus a `release.json`
|
|
496
|
-
a download page can read.
|
|
499
|
+
a download page can read. Each target in it has `update` (what an installed app updates from) and `downloads` (what a
|
|
500
|
+
person takes, the usual choice first: the DMG on macOS, the MSI on Windows, the AppImage and then the deb and rpm on
|
|
501
|
+
Linux), every entry with `name`, `format` (`dmg`, `msi`, `appimage`, `deb`, `rpm`, `zip`), `url`, `sha256` and `bytes`,
|
|
502
|
+
so a download page needs no rules of its own. A release is often made in several runs, the Mac from a Mac and then
|
|
497
503
|
`release:desktop --target linux-x64 --skip-build` for installers built elsewhere: a run for the same version and
|
|
498
504
|
channel adds its targets to `release.json` and replaces only the ones it published again. A new version starts a
|
|
499
505
|
new record.
|
|
500
506
|
|
|
507
|
+
**Targets built on another machine.** `build.json` in the output folder records every target and the SHA-256 of each
|
|
508
|
+
file, and a release publishes from it. To bring in what CI built, carry its output folder (the target folders and its
|
|
509
|
+
`build.json`) to the machine that releases and run `buddy build:desktop --import <folder>` (`--target` narrows it, and
|
|
510
|
+
a single target's folder works too). The import refuses a build of another app, version or commit (it must be the
|
|
511
|
+
commit this checkout is at) and any file that does not match its recorded hash, then copies the folders in and adds
|
|
512
|
+
the targets to the local record beside what was built here. An installer found under a target's `packages/` that the
|
|
513
|
+
record does not list (an MSI made by Craft's `packageApp` on its own) is recorded as found, with a warning that
|
|
514
|
+
there was nothing to check it against. With `--package`, an imported target for this operating system that has no
|
|
515
|
+
installer yet gets one made here: on a Windows runner, `buddy build:desktop --import <folder> --package` turns a
|
|
516
|
+
folder cross-compiled on Linux into a recorded MSI. Then `release:desktop --skip-build` publishes them. A build also
|
|
517
|
+
keeps the record's other targets when they are from the same version and commit.
|
|
518
|
+
|
|
519
|
+
**The identity a Mac build is signed with.** `build:desktop` signs with `--identity` or `DESKTOP_SIGNING_IDENTITY`
|
|
520
|
+
when one is given. Without one it uses the first Apple Development certificate it finds (which keeps Keychain items
|
|
521
|
+
trusted across rebuilds), else signs ad hoc, and says so in its output: neither can be notarized.
|
|
522
|
+
`release:desktop --identity` signs the bundle again with the identity it was given when the bundle is not already
|
|
523
|
+
signed with a Developer ID, hardened runtime and timestamp, so `--skip-build` works on a development build. It
|
|
524
|
+
refuses, before notarizing, when that identity is not a Developer ID Application certificate.
|
|
525
|
+
|
|
501
526
|
The server side is one default action, `Actions/Desktop/UpdateFeedAction`, mounted at
|
|
502
527
|
`/api/updates/{platform}/{arch}` whenever `webview.updates` is configured. It serves the stored manifest as is
|
|
503
528
|
(204 when `?current=` is already that version, 404 when nothing was published). Override the action in
|
|
@@ -39,7 +39,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
39
39
|
| `@stacksjs/datetime` | [`stacks-datetime`](../stacks-datetime/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/datetime/src/index.ts) | 22 |
|
|
40
40
|
| `@stacksjs/defaults` | [`stacks-build`](../stacks-build/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/defaults/package.json) | 3 |
|
|
41
41
|
| `@stacksjs/deploy` | [`stacks-deploy`](../stacks-deploy/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/deploy/package.json) | 1 |
|
|
42
|
-
| `@stacksjs/desktop-build` | [`stacks-desktop`](../stacks-desktop/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/index.ts) |
|
|
42
|
+
| `@stacksjs/desktop-build` | [`stacks-desktop`](../stacks-desktop/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/index.ts) | 22 |
|
|
43
43
|
| `@stacksjs/development` | [`stacks-development`](../stacks-development/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/development/package.json) | 1 |
|
|
44
44
|
| `@stacksjs/dns` | [`stacks-dns`](../stacks-dns/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/dns/src/index.ts) | 4 |
|
|
45
45
|
| `@stacksjs/docs` | [`stacks-docs`](../stacks-docs/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/docs/src/index.ts) | 3 |
|
|
@@ -392,9 +392,9 @@ Guidance: [`stacks-desktop`](../stacks-desktop/SKILL.md). Source: [storage/frame
|
|
|
392
392
|
|
|
393
393
|
Declared runtime exports: `BUN_EXECUTABLE_MARKER`, `RESERVED_PLIST_KEYS`, `USERLAND_LAUNCHER`, `bundleDirectoryFor`, `codesignArgs`, `craftDevCommand`, `createUpdateManifestUrl`, `describeRuntimeDuplication`, `desktopAppVersion`, `desktopLauncherCompileArgs`, `developerIdProblem`, `dmgVolumeName`, `hasUserlandDesktopLauncher`, `isMachO`, `looksLikeBunExecutable`, `notarizationOutcome`, `notarytoolAuthArgs`, `openDevWindow`, `plistValue`, `renderInfoPlist`, `renderUserlandPlistEntries`, `resolveCraftBinary`, `resolveCraftExecutable`, `resolveDesktopLauncher`, `resolveDevWindowUrl`, `resolveDmgPackaging`, `xmlEscape`.
|
|
394
394
|
|
|
395
|
-
Local source modules: [src/agent-launcher.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/agent-launcher.ts), [src/agent.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/agent.ts), [src/craft-runtime.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/craft-runtime.ts), [src/invites.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/invites.ts), [src/macos-app.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/macos-app.ts), [src/macos-bundle.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/macos-bundle.ts), [src/support.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/support.ts), [src/update-feed.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-feed.ts), [src/update-install.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-install.ts), [src/update-signing.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-signing.ts), [src/updater.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/updater.ts), [src/webview-agent.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-agent.ts), [src/webview-app.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-app.ts), [src/webview-launcher.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-launcher.ts).
|
|
395
|
+
Local source modules: [src/agent-launcher.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/agent-launcher.ts), [src/agent.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/agent.ts), [src/craft-runtime.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/craft-runtime.ts), [src/invites.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/invites.ts), [src/macos-app.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/macos-app.ts), [src/macos-bundle.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/macos-bundle.ts), [src/support.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/support.ts), [src/update-feed.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-feed.ts), [src/update-install.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-install.ts), [src/update-signing.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/update-signing.ts), [src/updater.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/updater.ts), [src/webview-agent.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-agent.ts), [src/webview-app.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-app.ts), [src/webview-build-record.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-build-record.ts), [src/webview-launcher.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/src/webview-launcher.ts).
|
|
396
396
|
|
|
397
|
-
Evidence directory: [
|
|
397
|
+
Evidence directory: [22 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/desktop/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
398
398
|
|
|
399
399
|
### @stacksjs/development
|
|
400
400
|
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.561",
|
|
6
6
|
"description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.561",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@iconify-json/f7": "^1.2.2",
|
|
47
47
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
48
|
-
"@stacksjs/mobile": "0.75.
|
|
48
|
+
"@stacksjs/mobile": "0.75.561",
|
|
49
49
|
"@stacksjs/sanitizer": "^0.2.864",
|
|
50
50
|
"@stacksjs/stx": "^0.2.864",
|
|
51
|
-
"@stacksjs/strings": "0.75.
|
|
51
|
+
"@stacksjs/strings": "0.75.561",
|
|
52
52
|
"@xterm/addon-fit": "^0.11.0",
|
|
53
53
|
"@xterm/xterm": "^6.0.0",
|
|
54
54
|
"ts-qr-codes": "^0.1.8"
|