fix: 处理windows构建,make windows-release来启动,不用改变其他文件,使用的windows/packaging/exe

This commit is contained in:
speakeloudest 2026-01-16 00:22:00 -08:00
parent 8e71e22e86
commit fec9188b0c
4 changed files with 8 additions and 66 deletions

View File

@ -182,7 +182,7 @@ android-aab-release:
windows-release: windows-release:
dart pub global activate flutter_distributor dart pub global activate flutter_distributor
flutter_distributor package --flutter-build-args=verbose --platform windows --targets exe,msix $(DISTRIBUTOR_ARGS) dart pub global run flutter_distributor:main package --flutter-build-args=verbose --platform windows --targets exe $(DISTRIBUTOR_ARGS)
linux-release: linux-release:
flutter_distributor package --flutter-build-args=verbose --platform linux --targets deb,rpm,appimage $(DISTRIBUTOR_ARGS) flutter_distributor package --flutter-build-args=verbose --platform linux --targets deb,rpm,appimage $(DISTRIBUTOR_ARGS)

View File

@ -1,50 +0,0 @@
@echo off
echo 📋 复制 libcore 文件...
:: 创建目标目录
mkdir libcore\bin >nul 2>&1
:: 查找并复制 HiddifyCli.exe重命名为 HiFastVPNCli.exe
for /r %%f in (HiddifyCli.exe) do (
if exist "%%f" (
echo ✅ 找到 HiddifyCli.exe: %%f
echo 📝 复制并重命名为 HiFastVPNCli.exe
copy "%%f" libcore\bin\HiFastVPNCli.exe
echo ✅ 重命名完成
goto :dll
)
)
echo ⚠️ 未找到 HiddifyCli.exe
:dll
:: 复制 libcore.dll
for /r %%f in (libcore.dll) do (
if exist "%%f" (
echo ✅ 找到 libcore.dll: %%f
copy "%%f" libcore\bin\libcore.dll
goto :verify
)
)
echo ⚠️ 未找到 libcore.dll
:verify
echo.
echo 📄 验证文件:
if exist libcore\bin (
dir libcore\bin
if exist libcore\bin\HiFastVPNCli.exe (
if exist libcore\bin\libcore.dll (
echo ✅ 验证成功:所有文件已正确复制
exit /b 0
) else (
echo ❌ 验证失败libcore.dll 不存在
exit /b 1
)
) else (
echo ❌ 验证失败HiFastVPNCli.exe 不存在
exit /b 1
)
) else (
echo ⚠️ libcore\bin 目录不存在
exit /b 1
)

View File

@ -6,16 +6,8 @@ executable_name: HiFastVPN.exe
output_base_file_name: HiFastVPN.exe output_base_file_name: HiFastVPN.exe
create_desktop_icon: true create_desktop_icon: true
install_dir_name: "{autopf64}\\HiFastVPN" install_dir_name: "{autopf64}\\HiFastVPN"
setup_icon_file: C:\Users\xprotocal\Downloads\hi-client\windows\runner\resources\app_icon.ico setup_icon_file: D:\hi-client\windows\runner\resources\app_icon.ico
locales: locales:
- zh
- zh-cn - zh-cn
- zh_CN
- ar
- en
- fa
- ru
- pt
- tr
script_template: inno_setup.sas script_template: inno_setup.sas
languages_dir: compiler:Languages languages_dir: compiler:Languages

View File

@ -1,7 +1,7 @@
#define MyAppName "Kaer VPN" #define MyAppName "HiFastVPN"
#define MyAppVersion "1.0.0" #define MyAppVersion "1.0.0"
#define MyAppPublisher "Kaer" #define MyAppPublisher "HiFastVPN"
#define MyAppExeName "kaer_vpn.exe" #define MyAppExeName "HiFastVPN.exe"
[Setup] [Setup]
AppId={{YOUR-APP-ID-HERE} AppId={{YOUR-APP-ID-HERE}
@ -23,8 +23,8 @@ Name: "chinesesimp"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files] [Files]
Source: "build\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion Source: "build\windows\x64\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "build\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\Windows\System32\msvcp140.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Windows\System32\msvcp140.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Windows\System32\vcruntime140.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Windows\System32\vcruntime140.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Windows\System32\vcruntime140_1.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Windows\System32\vcruntime140_1.dll"; DestDir: "{app}"; Flags: ignoreversion