-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathPack.cmd
More file actions
25 lines (21 loc) · 739 Bytes
/
Pack.cmd
File metadata and controls
25 lines (21 loc) · 739 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
@echo off
if /i not exist "artifacts" mkdir "artifacts"
dotnet restore Hi3Helper.Sophon.Universal.csproj || goto :Fail
dotnet clean -c Release Hi3Helper.Sophon.Universal.csproj || goto :Fail
call :Clean
dotnet build -c Release Hi3Helper.Sophon.Universal.csproj || goto :Fail
dotnet pack -c Release -o artifacts -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg Hi3Helper.Sophon.Universal.csproj || goto :Fail
goto :Success
:Fail
echo An error occurred while on build/pack process with error code: %errorlevel%
goto :End
:Success
echo Packing has been successful. Exported package is located at "artifacts" folder
call :Clean
goto :End
:End
pause > nul | echo Press any key to quit...
goto :EOF
:Clean
rmdir /S /Q bin
rmdir /S /Q obj