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 CHANGED
@@ -38,10 +38,10 @@ npm start
38
38
  ### Build Production Binary
39
39
 
40
40
  ```bash
41
- npm run build
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
- Generates `dist/MyApp-Setup.exe` powered by **Inno Setup**!
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 executable
22
- npx nanoshell package # Generate Windows Inno Setup installer (.exe)
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:
@@ -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
- if (typeof ZeroUI !== "undefined" && ZeroUI.sys) {
8
- const mem = ZeroUI.sys.getMemoryStats();
9
- const cpu = ZeroUI.sys.getCpuStats();
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(`[ZeroUI Sys] Arch: ${cpu.arch}, Cores: ${cpu.logical_cores}, RSS: ${(mem.total_rss_bytes / 1024).toFixed(1)} KB`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nanoshell",
3
- "version": "1.0.9",
3
+ "version": "1.1.4",
4
4
  "description": "Hyper-lightweight 17MB RAM, 120 FPS native desktop application framework & runtime engine created by Suman Biswas",
5
5
  "main": "zig-out/bin/example_app.exe",
6
6
  "bin": {
Binary file
Binary file