11 lines
245 B
Batchfile
11 lines
245 B
Batchfile
@echo off
|
|
cd /d "%~dp0"
|
|
|
|
net session >nul 2>&1
|
|
if errorlevel 1 (
|
|
powershell -Command "Start-Process '%~f0' -Verb RunAs -WorkingDirectory '%~dp0'"
|
|
exit /b
|
|
)
|
|
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\build.ps1" %*
|