about-system 0.0.65 → 0.0.67
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 +39 -7
- package/dist/about-system-cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/system-info-api-C_y-O4VW.js +2409 -0
- package/dist/system-info-api-C_y-O4VW.js.map +1 -0
- package/dist/system-info-api.js +1 -1
- package/package.json +5 -3
- package/src/cache/cache.test.ts +235 -0
- package/src/info/platform.test.ts +190 -0
- package/src/utils/utils.test.ts +218 -0
- package/dist/system-info-api-Ddz5VwDd.js +0 -2409
- package/dist/system-info-api-Ddz5VwDd.js.map +0 -1
package/README.md
CHANGED
|
@@ -30,17 +30,49 @@ bun x about-system
|
|
|
30
30
|
|
|
31
31
|
### Desktop app
|
|
32
32
|
|
|
33
|
-
The same
|
|
34
|
-
compiled into the app
|
|
33
|
+
The same 30+ metrics as a window you can leave open, built natively for every desktop OS. The CLI
|
|
34
|
+
is compiled into the app as a [Tauri sidecar](https://v2.tauri.app/develop/sidecar/), so an
|
|
35
|
+
installer runs on a machine with no Node, no Bun, and no package manager on it.
|
|
36
|
+
|
|
37
|
+
#### Download an installer
|
|
38
|
+
|
|
39
|
+
Every tagged release attaches a native build for each desktop system
|
|
40
|
+
([Releases](https://github.com/OpenSourceAGI/dev-tools-starter-agent/releases?q=about-system-desktop)):
|
|
41
|
+
|
|
42
|
+
| System | Architecture | Installer |
|
|
43
|
+
| --- | --- | --- |
|
|
44
|
+
| Windows 10 1803+ / 11 | x86_64 | `About System_<version>_x64_en-US.msi`, `About System_<version>_x64-setup.exe` |
|
|
45
|
+
| macOS 10.15+ | Apple Silicon + Intel (universal) | `About System_<version>_universal.dmg` |
|
|
46
|
+
| Linux (Debian/Ubuntu) | x86_64, aarch64 | `About System_<version>_amd64.deb`, `About System_<version>_arm64.deb` |
|
|
47
|
+
| Linux (Fedora/RHEL) | x86_64, aarch64 | `About System-<version>-1.x86_64.rpm`, `About System-<version>-1.aarch64.rpm` |
|
|
48
|
+
| Linux (any distro) | x86_64, aarch64 | `About System_<version>_amd64.AppImage`, `About System_<version>_aarch64.AppImage` |
|
|
49
|
+
|
|
50
|
+
Installers are unsigned by default, so macOS shows an "unidentified developer" warning and Windows
|
|
51
|
+
shows a SmartScreen prompt on first launch.
|
|
52
|
+
|
|
53
|
+
#### Build it yourself
|
|
54
|
+
|
|
55
|
+
Needs [Rust](https://rustup.rs) 1.77.2+, Node 18+, [Bun](https://bun.sh), and your platform's
|
|
56
|
+
[Tauri prerequisites](https://v2.tauri.app/start/prerequisites/):
|
|
35
57
|
|
|
36
58
|
```bash
|
|
37
|
-
|
|
59
|
+
bun install # the CLI's dependencies — the sidecar is compiled from its source
|
|
60
|
+
cd native
|
|
61
|
+
npm install
|
|
62
|
+
npm run build:desktop # regenerates config, compiles the sidecar, builds the installers
|
|
38
63
|
```
|
|
39
64
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
65
|
+
Artifacts land in `native/src-tauri/target/release/bundle/`. **Each installer must be built on its
|
|
66
|
+
own OS and architecture** — neither Tauri nor the `bun build --compile` sidecar cross-compiles,
|
|
67
|
+
which is why `.github/workflows/about-system-desktop.yml` runs the same two commands on a Windows,
|
|
68
|
+
a macOS, an x86_64 Linux, and an aarch64 Linux runner and attaches every artifact to one release.
|
|
69
|
+
|
|
70
|
+
The app is scaffolded from [`packages/native-app-wrapper`](../native-app-wrapper/) — a Tauri shell
|
|
71
|
+
that turns one JSON profile into a native app — and owns its whole identity (name, bundle id,
|
|
72
|
+
version, window, sidecar command) in `native/profiles/about-system.json`. See
|
|
73
|
+
[`native/README.md`](native/README.md) for the development loop, the universal-macOS build, and the
|
|
74
|
+
known limitations (no Windows-on-ARM build, since Bun has no `windows-arm64` compile target; and no
|
|
75
|
+
mobile build, since Android and iOS don't let an app spawn a bundled executable).
|
|
44
76
|
|
|
45
77
|
## Examples
|
|
46
78
|
|
package/dist/about-system-cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import y from "os";
|
|
|
3
3
|
import r from "fs";
|
|
4
4
|
import d from "path";
|
|
5
5
|
import { fileURLToPath as P } from "url";
|
|
6
|
-
import { g as F, a as I, b as S, C as b, S as k, c as p, d as v, D as $ } from "./system-info-api-
|
|
6
|
+
import { g as F, a as I, b as S, C as b, S as k, c as p, d as v, D as $ } from "./system-info-api-C_y-O4VW.js";
|
|
7
7
|
const x = P(import.meta.url), g = y.platform() === "win32", T = {
|
|
8
8
|
31: [41, 97],
|
|
9
9
|
// red
|
package/dist/index.js
CHANGED