openowl 0.3.1 → 0.3.3

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.
Files changed (3) hide show
  1. package/bin/owl +1 -1
  2. package/install.js +18 -8
  3. package/package.json +1 -1
package/bin/owl CHANGED
@@ -9,7 +9,7 @@ const fs = require("fs");
9
9
  const BINARIES = {
10
10
  "darwin-arm64": "owl-darwin-arm64",
11
11
  "darwin-x64": "owl-darwin-x86_64",
12
- // "win32-x64": "owl-win32-x64.exe",
12
+ "win32-x64": "owl-windows-x86_64.exe",
13
13
  };
14
14
 
15
15
  const platformKey = `${os.platform()}-${os.arch()}`;
package/install.js CHANGED
@@ -8,7 +8,7 @@ const https = require("https");
8
8
  const http = require("http");
9
9
  const { execSync } = require("child_process");
10
10
 
11
- const VERSION = "0.3.1";
11
+ const VERSION = "0.3.2";
12
12
  const BASE_URL =
13
13
  "https://dedjlsvrwafhyznaazbm.supabase.co/storage/v1/object/public/releases";
14
14
 
@@ -21,10 +21,11 @@ const PLATFORMS = {
21
21
  url: `${BASE_URL}/v${VERSION}/owl-darwin-x64.tar.gz`,
22
22
  binary: "owl-darwin-x86_64",
23
23
  },
24
- // "win32-x64": {
25
- // url: `${BASE_URL}/v${VERSION}/owl-win32-x64.zip`,
26
- // binary: "owl-win32-x64.exe",
27
- // },
24
+ "win32-x64": {
25
+ url: `${BASE_URL}/v${VERSION}/owl-win32-x64.zip`,
26
+ binary: "owl-windows-x86_64.exe",
27
+ isZip: true,
28
+ },
28
29
  };
29
30
 
30
31
  function getPlatformKey() {
@@ -77,13 +78,22 @@ async function install() {
77
78
  try {
78
79
  const tarball = await download(info.url);
79
80
 
80
- // Write tarball to temp file
81
- const tmpFile = path.join(os.tmpdir(), `owl-${VERSION}.tar.gz`);
81
+ // Write archive to temp file
82
+ const ext = info.isZip ? "zip" : "tar.gz";
83
+ const tmpFile = path.join(os.tmpdir(), `owl-${VERSION}.${ext}`);
82
84
  fs.writeFileSync(tmpFile, tarball);
83
85
 
84
86
  // Extract
85
87
  fs.mkdirSync(installDir, { recursive: true });
86
- execSync(`tar -xzf "${tmpFile}" -C "${installDir}"`, { stdio: "pipe" });
88
+ if (info.isZip) {
89
+ // Windows: use PowerShell to extract zip
90
+ execSync(
91
+ `powershell -Command "Expand-Archive -Force -Path '${tmpFile}' -DestinationPath '${installDir}'"`,
92
+ { stdio: "pipe" }
93
+ );
94
+ } else {
95
+ execSync(`tar -xzf "${tmpFile}" -C "${installDir}"`, { stdio: "pipe" });
96
+ }
87
97
  fs.unlinkSync(tmpFile);
88
98
 
89
99
  // Make binary executable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openowl",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "AI desktop automation MCP server — give your AI eyes and hands",
5
5
  "homepage": "https://openowl-portal.vercel.app",
6
6
  "repository": {