fnva 0.0.7 → 0.0.8
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.cmd +9 -1
- package/bin/fnva.ps1 +9 -1
- package/package.json +1 -1
- package/platforms/fnva +0 -0
- package/platforms/fnva.exe +0 -0
package/bin/fnva.cmd
CHANGED
|
@@ -17,9 +17,17 @@ REM 构建二进制文件路径
|
|
|
17
17
|
set PLATFORM_DIR=%OS%-%ARCH%
|
|
18
18
|
set BINARY_PATH=%~dp0..\platforms\%PLATFORM_DIR%\fnva.exe
|
|
19
19
|
|
|
20
|
+
REM 如果分层结构不存在,尝试扁平结构
|
|
21
|
+
if not exist "%BINARY_PATH%" (
|
|
22
|
+
set BINARY_PATH=%~dp0..\platforms\fnva.exe
|
|
23
|
+
)
|
|
24
|
+
|
|
20
25
|
REM 检查二进制文件是否存在
|
|
21
26
|
if not exist "%BINARY_PATH%" (
|
|
22
|
-
echo 错误:
|
|
27
|
+
echo 错误: 未找到二进制文件
|
|
28
|
+
echo 尝试的路径:
|
|
29
|
+
echo 1. %~dp0..\platforms\%PLATFORM_DIR%\fnva.exe
|
|
30
|
+
echo 2. %~dp0..\platforms\fnva.exe
|
|
23
31
|
echo 请运行 'npm run build' 构建二进制文件
|
|
24
32
|
exit /b 1
|
|
25
33
|
)
|
package/bin/fnva.ps1
CHANGED
|
@@ -14,9 +14,17 @@ $platformDir = "$os-$arch"
|
|
|
14
14
|
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
15
15
|
$binaryPath = Join-Path $scriptDir ".." "platforms" $platformDir "fnva.exe"
|
|
16
16
|
|
|
17
|
+
# 如果分层结构不存在,尝试扁平结构
|
|
18
|
+
if (-not (Test-Path $binaryPath)) {
|
|
19
|
+
$binaryPath = Join-Path $scriptDir ".." "platforms" "fnva.exe"
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
# 检查二进制文件是否存在
|
|
18
23
|
if (-not (Test-Path $binaryPath)) {
|
|
19
|
-
Write-Host "错误:
|
|
24
|
+
Write-Host "错误: 未找到二进制文件" -ForegroundColor Red
|
|
25
|
+
Write-Host "尝试的路径: " -ForegroundColor Yellow
|
|
26
|
+
Write-Host " 1. $(Join-Path $scriptDir ".." "platforms" $platformDir "fnva.exe")" -ForegroundColor Yellow
|
|
27
|
+
Write-Host " 2. $(Join-Path $scriptDir ".." "platforms" "fnva.exe")" -ForegroundColor Yellow
|
|
20
28
|
Write-Host "请运行 'npm run build' 构建二进制文件" -ForegroundColor Yellow
|
|
21
29
|
exit 1
|
|
22
30
|
}
|
package/package.json
CHANGED
package/platforms/fnva
CHANGED
|
Binary file
|
package/platforms/fnva.exe
CHANGED
|
Binary file
|