-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathCreateDeliverables.cmd
27 lines (22 loc) · 1.11 KB
/
CreateDeliverables.cmd
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
REM Run from dev command line
D:
cd \ProjectsPersonal\OnlyM
rd OnlyM\bin /q /s
rd OnlyMSlideManager\bin /q /s
rd OnlyMMirror\OnlyM /q /s
rd Installer\Output /q /s
REM build / publish
dotnet publish OnlyM\OnlyM.csproj -p:PublishProfile=FolderProfile -c:Release
dotnet publish OnlyMSlideManager\OnlyMSlideManager.csproj -p:PublishProfile=FolderProfile -c:Release
msbuild OnlyMMirror\OnlyMMirror.vcxproj -t:Rebuild -p:Configuration=Release
REM copy items into delivery
copy OnlyMMirror\OnlyM\bin\x86\Release\OnlyMMirror.exe OnlyM\bin\Release\net5.0-windows\publish
xcopy OnlyMSlideManager\bin\Release\net5.0-windows\publish\*.* OnlyM\bin\Release\net5.0-windows\publish /q /s /y /d
xcopy VCRTL\*.* OnlyM\bin\Release\net5.0-windows\publish /q
REM Remove unwanted language files
rd OnlyM\bin\Release\net5.0-windows\publish\no-NO /q /s
rd OnlyM\bin\Release\net5.0-windows\publish\pap-PAP /q /s
REM Create installer
"C:\Program Files (x86)\Inno Setup 6\iscc" Installer\onlymsetup.iss
REM create portable zip
powershell Compress-Archive -Path OnlyM\bin\Release\net5.0-windows\publish\* -DestinationPath Installer\Output\OnlyMPortable.zip