@phystack/screen-phyos 4.5.57-dev → 4.5.59-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/bin/index.js ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ const { spawnSync } = require('child_process');
3
+ const path = require('path');
4
+
5
+ const BINARY = 'physcreen-manager';
6
+ const key = `${process.platform}-${process.arch}`;
7
+ const pkg = `@phystack/${BINARY}-${key}`;
8
+
9
+ let binPath;
10
+ try {
11
+ binPath = path.join(path.dirname(require.resolve(`${pkg}/package.json`)), 'bin', BINARY);
12
+ } catch {
13
+ console.error(
14
+ `Unsupported or missing platform package: ${pkg}\n` +
15
+ `Platform: ${key}\n\n` +
16
+ `Install manually: npm install ${pkg}\n` +
17
+ `Or download: npx ${pkg}`
18
+ );
19
+ process.exit(1);
20
+ }
21
+
22
+ const result = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
23
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phystack/screen-phyos",
3
- "version": "4.5.57-dev",
3
+ "version": "4.5.59-dev",
4
4
  "description": "PhyOS Screen",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -11,9 +11,9 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@azure/storage-blob": "^12.23.0",
14
- "@phystack/axios-proxy": "4.5.57-dev",
15
- "@phystack/hub-client": "4.5.57-dev",
16
- "@phystack/phy-logger": "4.5.57-dev",
14
+ "@phystack/axios-proxy": "4.5.59-dev",
15
+ "@phystack/hub-client": "4.5.59-dev",
16
+ "@phystack/phy-logger": "4.5.59-dev",
17
17
  "@vercel/ncc": "^0.38.1",
18
18
  "get-image-colors": "^4.0.0",
19
19
  "global-agent": "^3.0.0",
@@ -48,17 +48,22 @@
48
48
  "uuid": "^8.3.2"
49
49
  },
50
50
  "bin": {
51
- "physcreen-manager": "./bin/physcreen-manager"
51
+ "physcreen-manager": "./bin/index.js"
52
52
  },
53
53
  "files": [
54
- "bin/physcreen-manager"
54
+ "bin/**/*"
55
55
  ],
56
56
  "scripts": {
57
57
  "build": "tsc",
58
58
  "build:binary": "npx bun build --compile --minify ./src/index.ts --outfile physcreen-manager",
59
- "prepublishOnly": "npx bun build --compile --minify ./src/index.ts --outfile bin/physcreen-manager",
60
59
  "lint": "eslint --ext .js,.ts src",
61
60
  "lint-fix": "tsc --noEmit && eslint --ext .js,.ts src --fix && prettier --write ."
62
61
  },
63
- "gitHead": "d11ba954df0547448f973f74221cd3727b60b9ae"
62
+ "optionalDependencies": {
63
+ "@phystack/physcreen-manager-darwin-arm64": "4.5.59-dev",
64
+ "@phystack/physcreen-manager-darwin-x64": "4.5.59-dev",
65
+ "@phystack/physcreen-manager-linux-arm64": "4.5.59-dev",
66
+ "@phystack/physcreen-manager-linux-x64": "4.5.59-dev"
67
+ },
68
+ "gitHead": "33d6cfda644e10fbd5a88924952cefa3d33ef01b"
64
69
  }
Binary file