-
Notifications
You must be signed in to change notification settings - Fork 0
/
Publish-Production.bat
33 lines (25 loc) · 988 Bytes
/
Publish-Production.bat
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
REM This batch script is a one-click build-everything (configuration of Release) into dist-prod folder.
REM After everything is done. User can launch the PSO2Lealauncher.exe in dist-prod folder and use it.
REM This is a Release build so it is not good for debug purpose. But for production use, this is what user will need.
SET "DOTNET_CLI_TELEMETRY_OPTOUT=1"
@echo off
cd /d %~dp0
REM Make all other .dll files
call Publish.bat
SETLOCAL
SET "PublishRootDir=docs\publish\v6"
SET "MSBUILDDISABLENODEREUSE=1"
if not exist %PublishRootDir% (
mkdir "%PublishRootDir%"
)
IF EXIST "%~dp0Tools\sdk\8.0.100\dotnet.exe" (
REM Use the specific SDK.
SET "PATH=%PATH%;%~dp0Tools\sdk\8.0.100"
)
IF EXIST "dist-prod" (
DEL /F /S /Q "dist-prod"
)
mkdir "dist-prod"
dotnet publish -c Release --no-self-contained -p:PublishReadyToRun=true -p:PublishSingleFile=true -r win-x64 -o "dist-prod" "PSO2Launcher\PSO2Launcher.csproj"
xcopy "%PublishRootDir%\files" "dist-prod\bin" /S /R /Y /I
ENDLOCAL