@phystack/device-phyos 4.5.62-dev → 4.5.63-dev
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 +27 -12
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# phydevice
|
|
2
2
|
|
|
3
|
-
PhyStack device agent for PhyOS.
|
|
3
|
+
PhyStack device agent for PhyOS. Compiled as a standalone Bun binary.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -15,27 +15,26 @@ npm automatically downloads the correct binary for your platform.
|
|
|
15
15
|
### Direct binary download (no npm required)
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
+
VERSION=4.5.62-dev # replace with desired version
|
|
19
|
+
|
|
18
20
|
# Linux ARM64
|
|
19
|
-
curl -sL "https://registry.npmjs.org/@phystack/phydevice-linux-arm64/-/phydevice-linux-arm64
|
|
20
|
-
sudo mv phydevice /usr/local/bin/
|
|
21
|
-
hash -r
|
|
21
|
+
sudo curl -sL "https://registry.npmjs.org/@phystack/phydevice-linux-arm64/-/phydevice-linux-arm64-${VERSION}.tgz" | sudo tar xz --strip-components=2 -C /usr/bin package/bin/phydevice
|
|
22
22
|
|
|
23
23
|
# Linux x86_64
|
|
24
|
-
curl -sL "https://registry.npmjs.org/@phystack/phydevice-linux-x64/-/phydevice-linux-x64
|
|
25
|
-
sudo mv phydevice /usr/local/bin/
|
|
24
|
+
sudo curl -sL "https://registry.npmjs.org/@phystack/phydevice-linux-x64/-/phydevice-linux-x64-${VERSION}.tgz" | sudo tar xz --strip-components=2 -C /usr/bin package/bin/phydevice
|
|
26
25
|
|
|
27
26
|
# macOS Apple Silicon
|
|
28
|
-
curl -sL "https://registry.npmjs.org/@phystack/phydevice-darwin-arm64/-/phydevice-darwin-arm64
|
|
29
|
-
sudo mv phydevice /usr/local/bin/
|
|
27
|
+
curl -sL "https://registry.npmjs.org/@phystack/phydevice-darwin-arm64/-/phydevice-darwin-arm64-${VERSION}.tgz" | tar xz --strip-components=2 -C /usr/local/bin package/bin/phydevice
|
|
30
28
|
|
|
31
29
|
# macOS Intel
|
|
32
|
-
curl -sL "https://registry.npmjs.org/@phystack/phydevice-darwin-x64/-/phydevice-darwin-x64
|
|
33
|
-
sudo mv phydevice /usr/local/bin/
|
|
30
|
+
curl -sL "https://registry.npmjs.org/@phystack/phydevice-darwin-x64/-/phydevice-darwin-x64-${VERSION}.tgz" | tar xz --strip-components=2 -C /usr/local/bin package/bin/phydevice
|
|
34
31
|
```
|
|
35
32
|
|
|
36
|
-
|
|
33
|
+
To check available versions:
|
|
37
34
|
|
|
38
|
-
|
|
35
|
+
```bash
|
|
36
|
+
npm view @phystack/phydevice-linux-arm64 versions --json
|
|
37
|
+
```
|
|
39
38
|
|
|
40
39
|
## Supported platforms
|
|
41
40
|
|
|
@@ -46,6 +45,22 @@ Replace `VERSION` with the desired version (e.g., `4.4.69`).
|
|
|
46
45
|
| macOS | ARM64 | `@phystack/phydevice-darwin-arm64` |
|
|
47
46
|
| macOS | x86_64 | `@phystack/phydevice-darwin-x64` |
|
|
48
47
|
|
|
48
|
+
## Building from source
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
yarn build:binary # compile for current platform
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Or use the central build script for cross-compilation:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# from repo root
|
|
58
|
+
yarn build:binaries # current platform
|
|
59
|
+
yarn build:binaries:cross # all platforms
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Output: `dist-binaries/<platform>/phydevice`
|
|
63
|
+
|
|
49
64
|
## Local development
|
|
50
65
|
|
|
51
66
|
Ensure the process can write to `/etc/phyos.env`. On macOS:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phystack/device-phyos",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.63-dev",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"description": "",
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@phystack/phydevice-darwin-arm64": "4.5.
|
|
31
|
-
"@phystack/phydevice-darwin-x64": "4.5.
|
|
32
|
-
"@phystack/phydevice-linux-arm64": "4.5.
|
|
33
|
-
"@phystack/phydevice-linux-x64": "4.5.
|
|
30
|
+
"@phystack/phydevice-darwin-arm64": "4.5.63-dev",
|
|
31
|
+
"@phystack/phydevice-darwin-x64": "4.5.63-dev",
|
|
32
|
+
"@phystack/phydevice-linux-arm64": "4.5.63-dev",
|
|
33
|
+
"@phystack/phydevice-linux-x64": "4.5.63-dev"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "ad3302d7fcb12285ec7eaeb28a606b9c05b0e822"
|
|
36
36
|
}
|