@nimiplatform/app-tools 0.6.1 → 0.6.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 +12 -0
- package/lib/app-scaffold-profiles.mjs +2 -1
- package/package.json +2 -2
- package/skills/nimi-app-lifecycle/references/release.md +4 -0
- package/templates/default-starter/.gitattributes +2 -0
- package/templates/default-starter/README.md +1 -1
- package/templates/default-starter.manifest.json +4 -0
package/README.md
CHANGED
|
@@ -296,6 +296,18 @@ out of source files, `.env`, and release notes.
|
|
|
296
296
|
|
|
297
297
|
### 4. Check, build, and publish a version
|
|
298
298
|
|
|
299
|
+
Keep the packaged `LICENSE` identical to the reviewed Git source. New scaffolds
|
|
300
|
+
include `LICENSE -text` in `.gitattributes`. Add the same rule to an existing
|
|
301
|
+
repository while preserving its other attributes, and commit it before tagging.
|
|
302
|
+
This prevents Windows checkout conversion from changing the license bytes that
|
|
303
|
+
Registry verifies against the exact source tag.
|
|
304
|
+
|
|
305
|
+
Electron packages keep native add-ons and their companion libraries outside ASAR
|
|
306
|
+
with their relative layout intact. The scaffold uses
|
|
307
|
+
`asar: { unpack: '**/*.{node,dylib,dll}' }` on Mac/Windows. Apply the equivalent rule
|
|
308
|
+
to existing App-owned packagers and verify native loading from the packaged layout;
|
|
309
|
+
unpacking only `.node` can leave Sharp's libvips unavailable to the OS loader.
|
|
310
|
+
|
|
299
311
|
Run the existing local path from the App repository:
|
|
300
312
|
|
|
301
313
|
```bash
|
|
@@ -226,7 +226,8 @@ function renderDefaultElectronProductionPackager(identity) {
|
|
|
226
226
|
' out: outputRoot,',
|
|
227
227
|
' tmpdir: packagerTempRoot,',
|
|
228
228
|
' overwrite: false,',
|
|
229
|
-
|
|
229
|
+
' // Native add-ons and their shared libraries must remain accessible to the OS loader.',
|
|
230
|
+
" asar: { unpack: '**/*.{node,dylib,dll}' },",
|
|
230
231
|
" ...(MACOS_BUILD ? { extraResource: [path.join(stagingRoot, 'nimi-native')] } : {}),",
|
|
231
232
|
' prune: false,',
|
|
232
233
|
' quiet: true,',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimiplatform/app-tools",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Public app-authoring CLI for Nimi App projects.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"nimiScaffoldVersions": {
|
|
21
21
|
"sdkVersion": "^0.13.0",
|
|
22
|
-
"appToolsVersion": "^0.6.
|
|
22
|
+
"appToolsVersion": "^0.6.3",
|
|
23
23
|
"nimicodingVersion": "0.6.3",
|
|
24
24
|
"aiSdkVersion": "^6.0.85",
|
|
25
25
|
"kitVersion": "^0.9.0",
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Before production, use public dependencies and frozen locks, complete portable App information and existing notices, and build/pack on the declared OS/architecture. Reuse `nimi-app check --production`, `test`, `build --target <target> --production`, and `pack --target <target> --production`. Local check does not establish GitHub settings or a release.
|
|
4
4
|
|
|
5
|
+
The packaged root `LICENSE` must match the reviewed source file byte for byte. New scaffolds include `LICENSE -text` in `.gitattributes`; for an existing repository, retain its other attributes and add that rule before tagging. It preserves the Git blob's original bytes when Windows would otherwise convert LF to CRLF. Registry checks the exact published package against the tagged source.
|
|
6
|
+
|
|
7
|
+
Electron packages must unpack native add-ons and their companion shared libraries with their relative layout intact. The scaffold uses `asar: { unpack: '**/*.{node,dylib,dll}' }` for the supported Mac/Windows targets. Existing App-owned packagers need the equivalent rule: unpacking only `.node` leaves libraries such as Sharp's libvips inside ASAR, where the OS loader cannot find them. Verify native loading from the packaged layout; a successful source launch or build alone does not prove that layout works.
|
|
8
|
+
|
|
5
9
|
Follow the [publisher setup guide](https://github.com/nimiplatform/nimi/blob/main/app-tools/README.md#publishing-on-github) before the first tag. Its `NIMI_REPOSITORY_ADMIN_TOKEN` needs only **Administration: Read-only** to check tag protection and Release immutability; actual Release uploads use GitHub's built-in token, which lacks that administration permission. A secret configured in another App repository is not inherited. Check real settings when publication is in scope. Keep App package/manifest versions equal and the annotated `v<version>` tag on a commit in the actual canonical default-branch history. Publish only with the user's existing authorization; fixing a local check does not authorize a new release.
|
|
6
10
|
|
|
7
11
|
The managed tag workflow owns production tests, target artifacts, attestations and immutable Release execution. Manual dispatch is a development build. Reuse its final Release/asset verification; a code change needs a new version, not a moved tag. Do not add local publish or another App production workflow.
|
|
@@ -30,7 +30,7 @@ Before production, the public GitHub repository must enable a protected `v*` tag
|
|
|
30
30
|
|
|
31
31
|
`pnpm dev` selects the official Desktop-supervised Electron development Host. Direct renderer, Electron or Tauri launch does not create protected Nimi access.
|
|
32
32
|
|
|
33
|
-
The default `windows-x86_64` build creates a fresh non-installer Electron directory at `dist-electron-package/acme-widget-shell-win32-x64/`, with the App-specific `acme-widget-shell.exe`,
|
|
33
|
+
The default `windows-x86_64` build creates a fresh non-installer Electron directory at `dist-electron-package/acme-widget-shell-win32-x64/`, with the App-specific `acme-widget-shell.exe`, ASAR-packaged JavaScript and renderer assets, and unpacked native add-ons plus shared libraries (`**/*.{node,dylib,dll}`). Their relative layout is preserved for the OS loader. Its production bundle rejects `--nimi-dev-renderer-url`. The protected native binding arrives only through Kit's optional dependency; do not add it directly to this App.
|
|
34
34
|
|
|
35
35
|
`pnpm run build:tauri:production` remains an explicit alternative for a deliberately selected Tauri build profile; it is not the default production carrier.
|
|
36
36
|
|