@synsci/openscience 2.0.2-test.41.1 → 2.0.2-test.43.1
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/openscience +0 -34
- package/package.json +13 -13
package/bin/openscience
CHANGED
|
@@ -92,24 +92,6 @@ function run(target) {
|
|
|
92
92
|
process.exit(1)
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// Clean up files that confuse Bun compiled binaries.
|
|
96
|
-
// Install dir stays as ~/.openscience/ until the path-migration follow-up PR.
|
|
97
|
-
const openscienceDir = path.join(os.homedir(), ".openscience")
|
|
98
|
-
for (const poison of ["package.json", ".gitignore", "bun.lockb", "bunfig.toml"]) {
|
|
99
|
-
try {
|
|
100
|
-
fs.unlinkSync(path.join(openscienceDir, poison))
|
|
101
|
-
} catch {}
|
|
102
|
-
}
|
|
103
|
-
try {
|
|
104
|
-
fs.rmSync(path.join(openscienceDir, "node_modules"), { recursive: true })
|
|
105
|
-
} catch {}
|
|
106
|
-
// Clear macOS extended attributes that cause Bun binaries to hang
|
|
107
|
-
if (os.platform() === "darwin") {
|
|
108
|
-
try {
|
|
109
|
-
childProcess.spawnSync("xattr", ["-rc", openscienceDir], { stdio: "ignore" })
|
|
110
|
-
} catch {}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
95
|
const result = childProcess.spawnSync(target, process.argv.slice(2), {
|
|
114
96
|
stdio: "inherit",
|
|
115
97
|
})
|
|
@@ -206,22 +188,6 @@ function main() {
|
|
|
206
188
|
current = parent
|
|
207
189
|
}
|
|
208
190
|
|
|
209
|
-
// Check ~/.openscience/bin (curl installer fallback; dir renamed later)
|
|
210
|
-
const homeBin = path.join(os.homedir(), ".openscience", "bin", binary)
|
|
211
|
-
if (isBinary(homeBin)) {
|
|
212
|
-
run(homeBin)
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// Check /opt/homebrew/bin (macOS)
|
|
216
|
-
if (os.platform() === "darwin" && isBinary("/opt/homebrew/bin/openscience")) {
|
|
217
|
-
run("/opt/homebrew/bin/openscience")
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// Check /usr/local/bin
|
|
221
|
-
if (isBinary("/usr/local/bin/openscience")) {
|
|
222
|
-
run("/usr/local/bin/openscience")
|
|
223
|
-
}
|
|
224
|
-
|
|
225
191
|
const expectedPackages = expectedPlatformPackages(platform, arch, musl)
|
|
226
192
|
console.error(`OpenScience binary not found for ${platform}-${arch}.`)
|
|
227
193
|
console.error(`Detected runtime: ${runtimeDescription(platform, arch, musl)}`)
|
package/package.json
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
},
|
|
6
6
|
"scripts": {
|
|
7
7
|
"preinstall": "node ./preinstall.mjs || exit 0",
|
|
8
|
-
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
8
|
+
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs || exit 0"
|
|
9
9
|
},
|
|
10
|
-
"version": "2.0.2-test.
|
|
10
|
+
"version": "2.0.2-test.43.1",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git+https://github.com/synthetic-sciences/openscience.git"
|
|
14
14
|
},
|
|
15
15
|
"optionalDependencies": {
|
|
16
16
|
"@synsci/atlas": "^0.13.2",
|
|
17
|
-
"@synsci/openscience-linux-x64-baseline-musl": "2.0.2-test.
|
|
18
|
-
"@synsci/openscience-windows-x64": "2.0.2-test.
|
|
19
|
-
"@synsci/openscience-linux-x64": "2.0.2-test.
|
|
20
|
-
"@synsci/openscience-darwin-arm64": "2.0.2-test.
|
|
21
|
-
"@synsci/openscience-windows-x64-baseline": "2.0.2-test.
|
|
22
|
-
"@synsci/openscience-darwin-x64-baseline": "2.0.2-test.
|
|
23
|
-
"@synsci/openscience-linux-x64-musl": "2.0.2-test.
|
|
24
|
-
"@synsci/openscience-linux-x64-baseline": "2.0.2-test.
|
|
25
|
-
"@synsci/openscience-darwin-x64": "2.0.2-test.
|
|
26
|
-
"@synsci/openscience-linux-arm64-musl": "2.0.2-test.
|
|
27
|
-
"@synsci/openscience-linux-arm64": "2.0.2-test.
|
|
17
|
+
"@synsci/openscience-linux-x64-baseline-musl": "2.0.2-test.43.1",
|
|
18
|
+
"@synsci/openscience-windows-x64": "2.0.2-test.43.1",
|
|
19
|
+
"@synsci/openscience-linux-x64": "2.0.2-test.43.1",
|
|
20
|
+
"@synsci/openscience-darwin-arm64": "2.0.2-test.43.1",
|
|
21
|
+
"@synsci/openscience-windows-x64-baseline": "2.0.2-test.43.1",
|
|
22
|
+
"@synsci/openscience-darwin-x64-baseline": "2.0.2-test.43.1",
|
|
23
|
+
"@synsci/openscience-linux-x64-musl": "2.0.2-test.43.1",
|
|
24
|
+
"@synsci/openscience-linux-x64-baseline": "2.0.2-test.43.1",
|
|
25
|
+
"@synsci/openscience-darwin-x64": "2.0.2-test.43.1",
|
|
26
|
+
"@synsci/openscience-linux-arm64-musl": "2.0.2-test.43.1",
|
|
27
|
+
"@synsci/openscience-linux-arm64": "2.0.2-test.43.1"
|
|
28
28
|
}
|
|
29
29
|
}
|