forked from Taritsyn/MsieJavaScriptEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-package.cmd
More file actions
41 lines (33 loc) · 2.17 KB
/
Copy pathbuild-package.cmd
File metadata and controls
41 lines (33 loc) · 2.17 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
34
35
36
37
38
39
40
41
set project_name=MsieJavaScriptEngine
set net4_project_source_dir=..\src\%project_name%.Net4
set net4_project_bin_dir=%net4_project_source_dir%\bin\Release
set dotnet_project_source_dir=..\src\%project_name%
set dotnet_project_bin_dir=%dotnet_project_source_dir%\bin\Release
set licenses_dir=..\Licenses
set net40_msbuild="\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
set dotnet_cli="%ProgramFiles%\dotnet\dotnet.exe"
set nuget_package_manager=..\.nuget\nuget.exe
rmdir lib /Q/S
del sass-and-coffee-license.txt /Q/S
del chakra-host-license.txt /Q/S
del jsrt-dotnet-license.txt /Q/S
del cross-browser-split-license.txt /Q/S
del bundler-and-minifier-license.txt /Q/S
%net40_msbuild% "%net4_project_source_dir%\%project_name%.Net40.csproj" /p:Configuration=Release
xcopy "%net4_project_bin_dir%\%project_name%.dll" lib\net40-client\
xcopy "%net4_project_bin_dir%\ru-ru\%project_name%.resources.dll" lib\net40-client\ru-ru\
%dotnet_cli% restore "%dotnet_project_source_dir%"
%dotnet_cli% build "%dotnet_project_source_dir%" --framework net45 --configuration Release --no-dependencies --no-incremental
xcopy "%dotnet_project_bin_dir%\net45\%project_name%.dll" lib\net45\
xcopy "%dotnet_project_bin_dir%\net45\%project_name%.xml" lib\net45\
xcopy "%dotnet_project_bin_dir%\net45\ru-ru\%project_name%.resources.dll" lib\net45\ru-ru\
%dotnet_cli% build "%dotnet_project_source_dir%" --framework netstandard1.3 --configuration Release --no-dependencies --no-incremental
xcopy "%dotnet_project_bin_dir%\netstandard1.3\%project_name%.dll" lib\netstandard1.3\
xcopy "%dotnet_project_bin_dir%\netstandard1.3\%project_name%.xml" lib\netstandard1.3\
xcopy "%dotnet_project_bin_dir%\netstandard1.3\ru-ru\%project_name%.resources.dll" lib\netstandard1.3\ru-ru\
copy "%licenses_dir%\sass-and-coffee-license.txt" sass-and-coffee-license.txt /Y
copy "%licenses_dir%\chakra-host-license.txt" chakra-host-license.txt /Y
copy "%licenses_dir%\jsrt-dotnet-license.txt" jsrt-dotnet-license.txt /Y
copy "%licenses_dir%\cross-browser-split-license.txt" cross-browser-split-license.txt /Y
copy "%licenses_dir%\bundler-and-minifier-license.txt" bundler-and-minifier-license.txt /Y
%nuget_package_manager% pack "%project_name%.nuspec"