@jo.cs98/opencode-plus 1.3.0-plus.3 → 1.3.0-plus.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/bin/install.cjs +7 -0
- package/package.json +1 -1
package/bin/install.cjs
CHANGED
|
@@ -153,6 +153,13 @@ async function main() {
|
|
|
153
153
|
|
|
154
154
|
fs.copyFileSync(extracted, dest)
|
|
155
155
|
if (platform !== "windows") fs.chmodSync(dest, 0o755)
|
|
156
|
+
if (platform === "darwin") {
|
|
157
|
+
try {
|
|
158
|
+
execFileSync("xattr", ["-d", "com.apple.quarantine", dest], { stdio: "ignore" })
|
|
159
|
+
} catch {
|
|
160
|
+
// xattr may not exist or file may not be quarantined — not fatal
|
|
161
|
+
}
|
|
162
|
+
}
|
|
156
163
|
console.log(`[opencode-plus] Installed binary to ${dest}`)
|
|
157
164
|
return
|
|
158
165
|
}
|
package/package.json
CHANGED