nanoshell 1.0.9 → 1.1.4
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 +3 -3
- package/SKILL.md +2 -2
- package/example_app/app.js +6 -5
- package/package.json +1 -1
- package/zig-out/bin/example_app.exe +0 -0
- package/zig-out/bin/nanoshell.exe +0 -0
package/README.md
CHANGED
|
@@ -38,10 +38,10 @@ npm start
|
|
|
38
38
|
### Build Production Binary
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
|
|
41
|
+
npx nanoshell build
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
Generates `dist/my-awesome-app.exe` (3.00 MB, 17.0 MB RAM native executable)!
|
|
44
|
+
Build production release binary only. Generates `dist/my-awesome-app.exe` (3.00 MB, 17.0 MB RAM native executable)!
|
|
45
45
|
|
|
46
46
|
### Generate Setup Installer (.exe)
|
|
47
47
|
|
|
@@ -49,7 +49,7 @@ Generates `dist/my-awesome-app.exe` (3.00 MB, 17.0 MB RAM native executable)!
|
|
|
49
49
|
npx nanoshell package
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
Build binary and generate Windows installer (`dist/MyApp-Setup.exe` powered by **Inno Setup**)!
|
|
53
53
|
- Provides user choice: **"Install for all users (Admin)"** vs **"Install for me only (Per-User, No Admin)"**
|
|
54
54
|
- High-ratio LZMA2 compression for ultra-compact setup installers
|
|
55
55
|
- Automatic Start Menu & Desktop shortcuts
|
package/SKILL.md
CHANGED
|
@@ -18,8 +18,8 @@ AI agents or developers can scaffold a new application using:
|
|
|
18
18
|
```bash
|
|
19
19
|
npx nanoshell <app-name> # Scaffold new app template
|
|
20
20
|
npx nanoshell start # Launch dev engine
|
|
21
|
-
npx nanoshell build # Build production binary
|
|
22
|
-
npx nanoshell package #
|
|
21
|
+
npx nanoshell build # Build production release binary only
|
|
22
|
+
npx nanoshell package # Build binary and generate Windows Inno Setup installer (.exe)
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
`npx nanoshell package` generates a Windows Setup `.exe` with a installer dialog allowing end-users to choose:
|
package/example_app/app.js
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
console.log("[ZeroUI App] Initializing Showcase Application...");
|
|
4
4
|
|
|
5
|
-
// 1. Query Native System Metrics via ZeroUI Native OS Bridge
|
|
5
|
+
// 1. Query Native System Metrics via NanoShell / ZeroUI Native OS Bridge
|
|
6
6
|
function refreshSystemStats() {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
7
|
+
const ns = (typeof NanoShell !== "undefined") ? NanoShell : ((typeof ZeroUI !== "undefined") ? ZeroUI : null);
|
|
8
|
+
if (ns && ns.sys) {
|
|
9
|
+
const mem = ns.sys.getMemoryStats();
|
|
10
|
+
const cpu = ns.sys.getCpuStats();
|
|
10
11
|
|
|
11
|
-
console.log(`[
|
|
12
|
+
console.log(`[NanoShell Sys] Arch: ${cpu.arch}, Cores: ${cpu.logical_cores}, RSS: ${(mem.total_rss_bytes / 1024).toFixed(1)} KB`);
|
|
12
13
|
|
|
13
14
|
const ramEl = document.getElementById("val-ram");
|
|
14
15
|
if (ramEl) {
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|