C++版clover支持安装net3.5,仅限于本地,因为下载站不会放那么大的包
大石头 authored at 2025-07-07 20:34:42
1.51 KiB
LuckyClover
set base=..\Bin
set dest=%base%\publish

mkdir %dest%

copy %base%\clover\Win32\clover.exe %dest%\clover.exe /y
copy %base%\clover\x64\clover.exe %dest%\clover64.exe /y
copy %base%\net20\clover.exe %dest%\clover20.exe /y
copy %base%\net40\clover.exe %dest%\clover40.exe /y
copy %base%\net45\clover.exe %dest%\clover45.exe /y
copy %base%\net48\clover.exe %dest%\clover48.exe /y
rem copy %base%\publish-windows\clover.exe %dest%\clover80.exe /y

pushd ..\LuckyClover
dotnet publish -c Release -f net6.0 -r win-x64 /p:SelfContained=false /p:PublishSingleFile=true
popd
copy %base%\net6.0\win-x64\publish\clover.exe %dest%\clover60.exe /y

pushd ..\LuckyClover
dotnet publish -c Release -f net8.0 -r win-x64 /p:SelfContained=false /p:PublishSingleFile=true
popd
copy %base%\net8.0\win-x64\publish\clover.exe %dest%\clover80.exe /y

pushd ..\LuckyClover
dotnet publish -c Release -f net10.0 -r win-x64 /p:SelfContained=false /p:PublishSingleFile=true
popd
copy %base%\net10.0\win-x64\publish\clover.exe %dest%\clover10.exe /y

copy %base%\publish-linux64\clover %dest%\clover /y

del %dest%\LuckyClover45.zip /f
del %dest%\LuckyClover.zip /f
del %dest%\LuckyClover2.zip /f

%dest%\clover80.exe zip %dest%\LuckyClover45.zip %base%\Installer45\*.exe %base%\Installer45\*.exe.config %base%\Installer45\*.dll
%dest%\clover80.exe zip %dest%\LuckyClover.zip %base%\Installer4\*.exe %base%\Installer4\*.exe.config %base%\Installer4\*.dll
%dest%\clover80.exe zip %dest%\LuckyClover2.zip %base%\Installer\*.exe %base%\Installer\*.exe.config %base%\Installer\*.dll