fnva 0.0.13 → 0.0.14
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/fnva.js +6 -1
- package/package.json +1 -1
- package/platforms/fnva +0 -0
- package/platforms/fnva.exe +0 -0
package/bin/fnva.js
CHANGED
|
@@ -43,6 +43,11 @@ function buildBinaryPath() {
|
|
|
43
43
|
return null;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
// 如果设置了 FNVA_AUTO_MODE,自动使用 Node.js 模式
|
|
47
|
+
if (process.env.FNVA_AUTO_MODE === '1') {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
|
|
46
51
|
const platform = resolvePlatform();
|
|
47
52
|
const binaryCandidates = [];
|
|
48
53
|
|
|
@@ -379,7 +384,7 @@ function run() {
|
|
|
379
384
|
const binaryPath = buildBinaryPath();
|
|
380
385
|
|
|
381
386
|
if (!binaryPath) {
|
|
382
|
-
if (process.env.FNVA_SKIP_NATIVE === '1') {
|
|
387
|
+
if (process.env.FNVA_SKIP_NATIVE === '1' || process.env.FNVA_AUTO_MODE === '1') {
|
|
383
388
|
// 纯 Node.js 模式 - 实现基本的环境切换功能
|
|
384
389
|
const args = process.argv.slice(2);
|
|
385
390
|
handleNodeOnlyMode(args);
|
package/package.json
CHANGED
package/platforms/fnva
CHANGED
|
Binary file
|
package/platforms/fnva.exe
CHANGED
|
Binary file
|