Skip to content

Commit

Permalink
chg - Added downloading ISP info into build steps
Browse files Browse the repository at this point in the history
---

Type: chg
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Jun 12, 2024
1 parent 163c7d7 commit 201bf37
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ REM This script builds and packs the artifacts. Use when you have VS installed.
set releaseconfig=%1
if "%releaseconfig%" == "" set releaseconfig=Release

:ispinfo
echo Downloading ISP info...
powershell "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process ; ../assets/IspInfo/getispinfo.ps1"
if %errorlevel% == 0 goto :download
echo There was an error trying to download ISP info (%errorlevel%).
goto :finished

:download
echo Downloading packages...
"%ProgramFiles%\dotnet\dotnet.exe" msbuild "..\Nettify.sln" -t:restore -p:Configuration=%releaseconfig%
Expand Down
8 changes: 8 additions & 0 deletions tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ if [ ! $? == 0 ]; then
exit 1
fi

# Download ISP info
echo Downloading ISP info...
bash ../assets/IspInfo/getispinfo.sh
if [ ! $? == 0 ]; then
echo Download failed.
exit 1
fi

# Download packages
echo Downloading packages...
"$dotnetpath" msbuild "../Nettify.sln" -t:restore -p:Configuration=$releaseconf
Expand Down

0 comments on commit 201bf37

Please sign in to comment.