mirror of
https://github.com/PurpleI2P/i2pdbrowser
synced 2025-08-26 05:32:08 +00:00
fix double-run requirement
This commit is contained in:
parent
cb6cfcd242
commit
473cdfe87a
@ -12,7 +12,7 @@ set fire=firefox.exe
|
||||
set port=FirefoxPortable.exe
|
||||
set i2pd=i2pd.exe
|
||||
|
||||
if not exist Firefox ( echo Firefox not found... Start building... && cd build && call build.cmd )
|
||||
if not exist Firefox ( echo Firefox not found... Start building... && pushd build && call build.cmd --skipwait & popd )
|
||||
|
||||
taskList|find /i "%port%">nul&&(taskkill /im "%port%" /t>nul)&&(%$pause% 2 >nul)
|
||||
REM taskList|find /i "%fire%">nul&&(taskkill /im "%fire%" >nul)
|
||||
|
@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
|
||||
REM Copyright (c) 2013-2024, The PurpleI2P Project
|
||||
REM Copyright (c) 2013-2025, The PurpleI2P Project
|
||||
REM This file is part of Purple i2pd project and licensed under BSD3
|
||||
REM See full license text in LICENSE file at top of project tree
|
||||
|
||||
@ -9,6 +9,7 @@ setlocal enableextensions
|
||||
set CURL=%~dp0curl.exe
|
||||
set FFversion=115.20.0esr
|
||||
set I2Pdversion=2.56.0
|
||||
call :GET_ARGS %*
|
||||
call :GET_LOCALE
|
||||
call :GET_PROXY
|
||||
call :GET_ARCH
|
||||
@ -147,8 +148,8 @@ if "%locale%"=="ru" (
|
||||
) else (
|
||||
echo I2Pd Browser Portable is ready to start!
|
||||
)
|
||||
pause
|
||||
exit
|
||||
if not defined arg_skipwait pause
|
||||
exit /b
|
||||
|
||||
:GET_LOCALE
|
||||
for /f "tokens=3" %%a in ('reg query "HKEY_USERS\.DEFAULT\Keyboard Layout\Preload"^|find "REG_SZ"') do (
|
||||
@ -168,4 +169,11 @@ set xOS=win32
|
||||
if defined PROCESSOR_ARCHITEW6432 (set xOS=win64) else if "%PROCESSOR_ARCHITECTURE%" neq "x86" (set xOS=win64)
|
||||
goto :eof
|
||||
|
||||
:GET_ARGS
|
||||
set arg_skipwait=
|
||||
for %%a in (%*) do (
|
||||
if "%%a"=="--skipwait" set arg_skipwait=yes
|
||||
)
|
||||
goto :eof
|
||||
|
||||
:eof
|
||||
|
Loading…
x
Reference in New Issue
Block a user