-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathCreateDeliverables.cmd
More file actions
41 lines (30 loc) · 830 Bytes
/
CreateDeliverables.cmd
File metadata and controls
41 lines (30 loc) · 830 Bytes
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
REM Run from dev command line
@ECHO OFF
VERIFY ON
D:
cd \ProjectsPersonal\OnlyR
rd OnlyR\bin /q /s
rd Installer\Output /q /s
ECHO.
ECHO Publishing OnlyR
dotnet publish OnlyR\OnlyR.csproj -p:PublishProfile=FolderProfile -c:Release
IF %ERRORLEVEL% NEQ 0 goto ERROR
ECHO.
ECHO Removing unwanted x64 DLLs
del OnlyR\bin\Release\net8.0-windows\publish\win-x86\libmp3lame.64.dll
ECHO.
ECHO Creating installer
"D:\Program Files (x86)\Inno Setup 6\iscc" Installer\onlyrsetup.iss
IF %ERRORLEVEL% NEQ 0 goto ERROR
ECHO.
ECHO Creating portable zip
powershell Compress-Archive -Path OnlyR\bin\Release\net8.0-windows\publish\win-x86\* -DestinationPath Installer\Output\OnlyRPortable.zip
IF %ERRORLEVEL% NEQ 0 goto ERROR
goto SUCCESS
:ERROR
ECHO.
ECHO ******************
ECHO An ERROR occurred!
ECHO ******************
:SUCCESS
PAUSE