-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPostBuild.bat
More file actions
23 lines (23 loc) · 788 Bytes
/
PostBuild.bat
File metadata and controls
23 lines (23 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
:: Arg 1 is the Release dir, arg 2 is the name of the exe to merge, arg 3 is the solution dir
:: Clear out the Export folder, rd removes the dir, gets remade with mkdir
echo Arg[0]: %1
echo Arg[1]: %2
echo Arg[2]: %3
echo ExportPath: %3Export
echo Preparing paths
cd %3Export
del /s /q *.*
rd /s /q %3Export
mkdir %3Export
:: Merge dlls and the exe together
echo Merging assemblies
cd %1
set assemblies=%2 Newtonsoft.Json.dll
%3packages\ilmerge.2.14.1208\tools\ILMerge.exe %assemblies% /out:NotesOblitus.exe
echo Assemblies merged: %assemblies%
:: Copy all the relavant files to the Export folder
echo Copying paths to Export
cd %3
xcopy %1*.* %3Export /s /e /exclude:CopyFilter.txt
ManifestBuilder\bin\Release\ManifestBuilder.exe %3Export
xcopy %3Patcher\bin\Release\Patcher.exe %3Export