aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.UI/Post_Build.bat
blob: a9c1135612115d475aa86a240e645b365d8908b1 (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
echo Post Build: %1

attrib +r Tango*
attrib +r Google.Protobuf.xml
del *.xml
attrib -r Tango*
attrib -r Google.Protobuf.xml

attrib +r Tango*
del *.pdb
attrib -r Tango*

RD /S /Q "ProtoCompilers\"
RD /S /Q "Roslyn\"

del WebRtc.NET.pdb

rem -------------------- Twine Studio -----------------------------------

del "Tango.TwineStudio.UI.exe"
del "Tango.TwineStudio.UI.exe.config"
del "Tango.TwineStudio.UI.pdb"

if %1==TS (
	goto TwineStudioRelease
	goto TwineStudio
)

if %1==TS_Debug (
	goto TwineStudio
)

exit

:TwineStudioRelease
echo Modifying Assembly to "Twine Studio"
ren "Tango.FSE.UI.exe" "Tango.TwineStudio.UI.exe"
ren "Tango.FSE.UI.exe.config" "Tango.TwineStudio.UI.exe.config"
ren "Tango.FSE.UI.pdb" "Tango.TwineStudio.UI.pdb"

rem Modify EXE attributes
rc "Tango.TwineStudio.UI.exe" --set-version-string "FileDescription" "Twine Studio"
rc "Tango.TwineStudio.UI.exe" --set-version-string "OriginalFilename" "Tango.TwineStudio.UI.exe"

del rc.exe

:TwineStudio
echo Excluding Assemblies for Twine Studio

rem Exclude Modules
del Tango.FSE.Diagnostics.*
del Tango.FSE.Firmware.*
del Tango.FSE.Insights.*
del Tango.FSE.MachineConfiguration.*
del Tango.FSE.Procedures.*
del Tango.FSE.Upgrade.*
del Tango.FSE.UsersAndRoles.*