@nimiplatform/app-tools 0.16.0-rc.12 → 0.16.0-rc.13
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 +15 -3
- package/bin/nimi-app.mjs +11 -4
- package/lib/app-doctor-update.mjs +19 -6
- package/lib/app-pack.mjs +209 -12
- package/lib/app-project-lifecycle.mjs +41 -5
- package/lib/app-scaffold-capabilities.mjs +28 -0
- package/lib/app-scaffold-profiles.mjs +50 -0
- package/lib/app-scaffold.mjs +289 -15
- package/lib/desktop-window.mjs +106 -0
- package/lib/index.mjs +1 -0
- package/package.json +3 -3
- package/scripts/dev-shell.mjs +13 -1
- package/templates/default-starter/README.md +14 -6
|
@@ -24,18 +24,23 @@ pnpm install
|
|
|
24
24
|
pnpm run init
|
|
25
25
|
pnpm run sync
|
|
26
26
|
pnpm run check
|
|
27
|
-
pnpm run
|
|
28
|
-
pnpm run app:build -- --target windows-x86_64
|
|
27
|
+
pnpm run app:build
|
|
29
28
|
pnpm dev
|
|
30
29
|
```
|
|
31
30
|
|
|
32
31
|
### Local Development
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
Open Nimi Home, sign in and enable Developer Mode before running `pnpm dev`. Add an App test under `test/*.test.mjs` and run it with `pnpm test`.
|
|
35
34
|
|
|
36
35
|
### Building & Carrier Layout
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
<!-- carrier: managed-web -->
|
|
38
|
+
This App builds static frontend files into `dist/renderer/`. Nimi Home runs them in its managed desktop carrier on Windows x64 and macOS arm64. Both platforms use the same package.
|
|
39
|
+
|
|
40
|
+
Set the summary, PNG icon and release notes in `nimi.app.yaml` and the license identifier in `package.json`. Run `pnpm exec nimi-app pack --target desktop-universal` after building. The resulting `.nimiapp` is in `dist/nimi-app/`.
|
|
41
|
+
<!-- end carrier -->
|
|
42
|
+
<!-- carrier: native -->
|
|
43
|
+
The `windows-x86_64` build outputs a fresh non-installer Electron directory at `dist-electron-package/acme-widget-shell-win32-x64/`, containing:
|
|
39
44
|
|
|
40
45
|
- The App-specific executable `acme-widget-shell.exe`
|
|
41
46
|
- ASAR-packaged JavaScript and renderer assets
|
|
@@ -45,11 +50,14 @@ The production bundle rejects `--nimi-dev-renderer-url`. The protected native bi
|
|
|
45
50
|
|
|
46
51
|
Electron packages target Windows x64 and macOS arm64. Standard builds use Node, pnpm and the prebuilt native Kit package for the target.
|
|
47
52
|
|
|
53
|
+
Run `pnpm exec nimi-app pack --target windows-x86_64` on Windows or `pnpm exec nimi-app pack --target macos-aarch64` on macOS after building. Publishers may sign the Windows executable before packing. Production packing records the observed Authenticode signature or an explicit unsigned posture.
|
|
54
|
+
<!-- end carrier -->
|
|
55
|
+
|
|
48
56
|
### Packaging & Release Boundaries
|
|
49
57
|
|
|
50
|
-
|
|
58
|
+
Pushing a protected version tag triggers the managed GitHub Release workflow. Submit the resulting immutable Release through the Registry pull-request and human-review flow.
|
|
51
59
|
|
|
52
|
-
Before cutting a production release,
|
|
60
|
+
Before cutting a production release, enable a protected `v*` tag ruleset and immutable releases in the public GitHub repository, and provide a read-only repository-admin token to verify those settings. Manual workflow dispatch runs a development build.
|
|
53
61
|
|
|
54
62
|
A GitHub Release remains independent from registry admission, Runtime installation, Desktop launch, and Nimi Access. Runtime, Realm, registry admission, installed state, and process truth remain with their canonical owners. This repository stores no Runtime credentials or protected session material.
|
|
55
63
|
|