forked from tmoonlight/NSmartProxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
33 lines (25 loc) · 1.11 KB
/
build.cmd
File metadata and controls
33 lines (25 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
rem windows only
rem NSP v0.8_bugfix
@ECHO off
set Ver=v0.8
set BuildPath=%~dp0../build
set nsp_server_path=%BuildPath%/nspclient_%Ver%
set nsp_client_path=%BuildPath%/nspserver_%Ver%
set nsp_client_winfform_path=%BuildPath%/nspclient_winform_%Ver%
rem del %~dp0/../build/*.*
rem NSPClient
dotnet publish .\NSmartProxyClient\NSmartProxyClient.csproj -o %nsp_server_path%
rem NSPServer
dotnet publish .\NSmartProxy.ServerHost\NSmartProxy.ServerHost.csproj -o %nsp_client_path%
rem NSPWinform
MSBuild .\NSmartProxyWinform\NSmartProxyWinform.csproj /t:build /p:OutDir=%nsp_client_winfform_path%
powershell del %nsp_client_winfform_path%/*.pdb
powershell del %nsp_client_winfform_path%/*.xml
rem ilmerge
rem ruined :<
rem compress
powershell Compress-Archive -Path '%nsp_server_path%/*' -DestinationPath '%BuildPath%/nspclient_%Ver%.zip' -Force
powershell Compress-Archive -Path '%nsp_client_path%/*' -DestinationPath '%BuildPath%/nspserver_%Ver%.zip' -Force
powershell Compress-Archive -Path '%nsp_client_winfform_path%/*' -DestinationPath '%BuildPath%/nspclient_winform_%Ver%.zip' -Force
powershell explorer %~dp0..\build
pause