Skip to content

Commit f684f4d

Browse files
updated releasetest.bat
1 parent 6e7e433 commit f684f4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/test/releasetest/releasetest.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ echo n | tspawn s blog
6363
tspawn w foo
6464

6565
:: Set ExecutionPolicy
66+
for %%I in (tadpoled.exe) do if exist %%~$path:I set TADPOLED=%%~$path:I
67+
for %%I in (tadpole.exe) do if exist %%~$path:I set TADPOLE=%%~$path:I
68+
6669
powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser -Force"
70+
powershell -command "New-NetFirewallRule -DisplayName MyAppAccess1 -Direction Inbound -Action Allow -Profile Public,Private -Program '%TADPOLED%' -Protocol TCP -LocalPort %PORT% -RemoteAddress 127.0.0.1" >nul 2>&1
71+
powershell -command "New-NetFirewallRule -DisplayName MyAppAccess2 -Direction Inbound -Action Allow -Profile Public,Private -Program '%TADPOLE%' -Protocol TCP -LocalPort %PORT% -RemoteAddress 127.0.0.1" >nul 2>&1
72+
6773

6874
:: Test in debug mode
6975
if not "%CMAKE%" == "" (

0 commit comments

Comments
 (0)