-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcake_publish_release.bat
More file actions
28 lines (28 loc) · 980 Bytes
/
Copy pathcake_publish_release.bat
File metadata and controls
28 lines (28 loc) · 980 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
@echo off
set appname=KeepAwake
set artifact="%~dp0Release\%appname%.exe"
cls
echo ****************************************
echo Starting publishing...
echo ****************************************
echo.
echo ========================================
echo dotnet restore
echo ========================================
dotnet restore
echo.
echo ========================================
echo Starting Cake build...
echo ========================================
Powershell.exe -executionpolicy remotesigned -File build.ps1 --configuration=Release --framework=net9.0-windows --runtime=win-x64 --selfcontained=false --publishdir=../Release --publishexename="%appname%"
echo.
echo ========================================
echo Artifact
echo ========================================
if not exist %artifact% (
echo Publishing with error finished. Binary can not be found in subfolder %artifact%
) else (
echo Publishing finished. Binary can be found in subfolder %artifact%
)
echo.
pause