fly-lang 0.6.11 → 0.6.12
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/fly-checkd +0 -0
- package/bin/fly-checkd-arm64 +0 -0
- package/bin/fly-checkd-arm64.exe +0 -0
- package/bin/fly-checkd-darwin +0 -0
- package/bin/fly-checkd-darwin-arm64 +0 -0
- package/bin/fly-checkd.exe +0 -0
- package/bin/fly-darwin-amd64 +0 -0
- package/bin/fly-darwin-arm64 +0 -0
- package/bin/fly-linux-amd64 +0 -0
- package/bin/fly-linux-arm64 +0 -0
- package/bin/fly-windows-amd64.exe +0 -0
- package/bin/fly-windows-arm64.exe +0 -0
- package/cli.js +5 -6
- package/package.json +1 -1
package/bin/fly-checkd
CHANGED
|
Binary file
|
package/bin/fly-checkd-arm64
CHANGED
|
Binary file
|
package/bin/fly-checkd-arm64.exe
CHANGED
|
Binary file
|
package/bin/fly-checkd-darwin
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/fly-checkd.exe
CHANGED
|
Binary file
|
package/bin/fly-darwin-amd64
CHANGED
|
Binary file
|
package/bin/fly-darwin-arm64
CHANGED
|
Binary file
|
package/bin/fly-linux-amd64
CHANGED
|
Binary file
|
package/bin/fly-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/cli.js
CHANGED
|
@@ -16,14 +16,13 @@ function binaryPath() {
|
|
|
16
16
|
const sys = process.platform;
|
|
17
17
|
const arch = process.arch;
|
|
18
18
|
const name = BIN_MAP[sys] && BIN_MAP[sys][arch];
|
|
19
|
+
// bin/fly 优先:fly update 原子替换的是该通用名,平台名只是首次安装的初始副本
|
|
20
|
+
const candidates = [path.join(binDir, "fly")];
|
|
19
21
|
if (name) {
|
|
20
|
-
|
|
21
|
-
if (fs.existsSync(p)) {
|
|
22
|
-
return p;
|
|
23
|
-
}
|
|
22
|
+
candidates.push(path.join(binDir, name));
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
for (const c of
|
|
24
|
+
candidates.push(path.join(__dirname, "..", "..", "fly"));
|
|
25
|
+
for (const c of candidates) {
|
|
27
26
|
if (fs.existsSync(c)) {
|
|
28
27
|
return c;
|
|
29
28
|
}
|
package/package.json
CHANGED