fly-lang 0.6.10 → 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 CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
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
- const p = path.join(binDir, name);
21
- if (fs.existsSync(p)) {
22
- return p;
23
- }
22
+ candidates.push(path.join(binDir, name));
24
23
  }
25
- const fallbacks = [path.join(binDir, "fly"), path.join(__dirname, "..", "..", "fly")];
26
- for (const c of fallbacks) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fly-lang",
3
- "version": "0.6.10",
3
+ "version": "0.6.12",
4
4
  "description": "PyFly: Python 3.10+ 安全增强超集转译器(safe/only/lock/mask/cage/guard/seal/trace)",
5
5
  "license": "MIT",
6
6
  "author": "anan29_china (https://www.npmjs.com/~anan29_china)",