fix: 处理windows构建,make windows-release来启动,不用改变其他文件,使用的windows/packaging/exe
This commit is contained in:
parent
8e71e22e86
commit
fec9188b0c
2
Makefile
2
Makefile
@ -182,7 +182,7 @@ android-aab-release:
|
||||
|
||||
windows-release:
|
||||
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:
|
||||
flutter_distributor package --flutter-build-args=verbose --platform linux --targets deb,rpm,appimage $(DISTRIBUTOR_ARGS)
|
||||
|
||||
@ -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
|
||||
)
|
||||
@ -6,16 +6,8 @@ executable_name: HiFastVPN.exe
|
||||
output_base_file_name: HiFastVPN.exe
|
||||
create_desktop_icon: true
|
||||
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:
|
||||
- zh
|
||||
- zh-cn
|
||||
- zh_CN
|
||||
- ar
|
||||
- en
|
||||
- fa
|
||||
- ru
|
||||
- pt
|
||||
- tr
|
||||
script_template: inno_setup.sas
|
||||
languages_dir: compiler:Languages
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#define MyAppName "Kaer VPN"
|
||||
#define MyAppName "HiFastVPN"
|
||||
#define MyAppVersion "1.0.0"
|
||||
#define MyAppPublisher "Kaer"
|
||||
#define MyAppExeName "kaer_vpn.exe"
|
||||
#define MyAppPublisher "HiFastVPN"
|
||||
#define MyAppExeName "HiFastVPN.exe"
|
||||
|
||||
[Setup]
|
||||
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
|
||||
|
||||
[Files]
|
||||
Source: "build\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "build\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "build\windows\x64\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
||||
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\vcruntime140.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "C:\Windows\System32\vcruntime140_1.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
@ -34,4 +34,4 @@ Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user