@nimiplatform/app-tools 0.2.1 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimiplatform/app-tools",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Public app-authoring CLI for Nimi App projects.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -18,11 +18,11 @@
18
18
  "provenance": true
19
19
  },
20
20
  "nimiScaffoldVersions": {
21
- "sdkVersion": "^0.7.0",
22
- "appToolsVersion": "^0.2.1",
21
+ "sdkVersion": "^0.8.0",
22
+ "appToolsVersion": "^0.2.3",
23
23
  "nimicodingVersion": "0.6.1",
24
24
  "aiSdkVersion": "^6.0.85",
25
- "kitVersion": "^0.3.0",
25
+ "kitVersion": "^0.4.0",
26
26
  "reactVersion": "^19.2.8",
27
27
  "reactDomVersion": "^19.2.8",
28
28
  "i18nextVersion": "^25.10.10",
@@ -39,6 +39,7 @@
39
39
  "tauriCliVersion": "^2.11.4",
40
40
  "yamlVersion": "^2.9.0",
41
41
  "nimiShellTauriVersion": "0.2.1",
42
+ "electronPackagerVersion": "^20.3.0",
42
43
  "electronVersion": "^42.10.1",
43
44
  "esbuildVersion": "^0.28.2",
44
45
  "packageManager": "pnpm@10.34.5"
@@ -26,10 +26,14 @@ pnpm dev
26
26
 
27
27
  After a real target build, `pnpm run pack -- --target <target-id>` uses app-tools as the only package owner. Local publish is unavailable; a protected version tag runs the managed GitHub Release workflow, while registry pull-request orchestration remains unavailable until its owner path exists.
28
28
 
29
- Before production, the public GitHub repository must enable a protected `v*` tag ruleset and immutable releases and provide a read-only repository-admin token for checking those settings. On Windows, the tag-only production build signs the exact declared Host with the publisher PFX; production pack only verifies the resulting Authenticode signature. Manual workflow dispatch runs only the non-production path. The resulting GitHub Release remains independent from registry admission, Runtime installation, Desktop launch, and Nimi Access.
29
+ Before production, the public GitHub repository must enable a protected `v*` tag ruleset and immutable releases and provide a read-only repository-admin token for checking those settings. On Windows, the tag-only production build runs the App-declared build owner without a Nimi signing step. A publisher may sign the exact declared Host through its own build or signing custody; production pack records either verified Authenticode or explicit unsigned posture and rejects invalid or unresolved signatures. Manual workflow dispatch runs only the non-production path. The resulting GitHub Release remains independent from registry admission, Runtime installation, Desktop launch, and Nimi Access.
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`, unpacked renderer files (`asar: false`), and relative renderer assets. 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
+
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
+
33
37
  Runtime, Realm, registry admission, installed state and process truth remain with their canonical owners. This repository stores no Runtime credentials or protected session material.
34
38
 
35
39
  ## Support
@@ -1,5 +1,32 @@
1
+ // @nimi-authority: rule.nimi.platform.app-ecosystem.p-napp-034a
2
+
3
+ const WINDOWS_APP_MANIFEST: &str = r#"
4
+ <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
5
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
6
+ <security>
7
+ <requestedPrivileges>
8
+ <requestedExecutionLevel level="asInvoker" uiAccess="false" />
9
+ </requestedPrivileges>
10
+ </security>
11
+ </trustInfo>
12
+ <dependency>
13
+ <dependentAssembly>
14
+ <assemblyIdentity
15
+ type="win32"
16
+ name="Microsoft.Windows.Common-Controls"
17
+ version="6.0.0.0"
18
+ processorArchitecture="*"
19
+ language="*"
20
+ publicKeyToken="6595b64144ccf1df" /> <!-- pragma: allowlist secret; public Microsoft Common Controls token. -->
21
+ </dependentAssembly>
22
+ </dependency>
23
+ </assembly>
24
+ "#;
25
+
1
26
  fn main() {
2
27
  println!("cargo:rerun-if-changed=icons/icon.png");
3
28
  println!("cargo:rerun-if-changed=icons/icon.ico");
4
- tauri_build::build();
29
+ let windows = tauri_build::WindowsAttributes::new().app_manifest(WINDOWS_APP_MANIFEST);
30
+ let attributes = tauri_build::Attributes::new().windows_attributes(windows);
31
+ tauri_build::try_build(attributes).expect("failed to build Tauri application attributes");
5
32
  }