forked from HMBSbige/ShadowsocksR-Windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.cmd
20 lines (14 loc) · 1.08 KB
/
publish.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo off
for /f "tokens=*" %%s in ('findstr /C:"public const string Version = @" %~dp0\shadowsocks-csharp\Controller\HttpRequest\UpdateChecker.cs') do (
set version=%%s
)
set version=%version:~32,-2%
echo Version: %version%
echo package .NET Core
7z a ShadowsocksR-netcore-%version%.zip %~dp0\shadowsocks-csharp\bin\Release\netcoreapp3.0\publish\ShadowsocksR.exe %~dp0\shadowsocks-csharp\bin\Release\netcoreapp3.0\publish\ShadowsocksR.dll %~dp0\shadowsocks-csharp\bin\Release\netcoreapp3.0\publish\ShadowsocksR.runtimeconfig.json
echo package .NET Framework
7z a ShadowsocksR-net48-%version%.zip %~dp0\shadowsocks-csharp\bin\Release\net48\ShadowsocksR.exe %~dp0\shadowsocks-csharp\bin\Release\net48\ShadowsocksR.exe.config
echo package .NET Core SelfContained x86
7z a ShadowsocksR-netcore-win32-%version%.zip %~dp0\shadowsocks-csharp\bin\Release\netcoreapp3.0\win-x86\publish\ShadowsocksR.exe %~dp0\clean.cmd
echo package .NET Core SelfContained x64
7z a ShadowsocksR-netcore-win64-%version%.zip %~dp0\shadowsocks-csharp\bin\Release\netcoreapp3.0\win-x64\publish\ShadowsocksR.exe %~dp0\clean.cmd