Optimize rendering, fix Android app extraction, and remove Cloudflare token leak
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
This commit is contained in:
12
pack-usb.bat
12
pack-usb.bat
@@ -151,9 +151,6 @@ echo [5/8] Launcher synced.
|
||||
if not exist "%USB%\scripts" mkdir "%USB%\scripts"
|
||||
copy /y "%ROOT%\scripts\usb-start-cloudflared.ps1" "%USB%\scripts\" >nul
|
||||
copy /y "%ROOT%\scripts\launch-prep.bat" "%USB%\scripts\" >nul
|
||||
if not exist "%USB%\data\cloudflared-token.txt" (
|
||||
echo eyJhIjoiODk1NDc5YWIzNTQwZGFhNmQ2MWFlNzAyYTUxNjQ0NzUiLCJ0IjoiYWYzNzY5NGYtNDA4Yy00ZWI3LWE2M2MtMzM5MzQ1MjI3NWIwIiwicyI6IlpEa3lPVE5pWWpjdE9USXlZeTAwTlRjNExUaGlZVGN0WWpGaFlUWmtOR05rTXpjMyJ9> "%USB%\data\cloudflared-token.txt"
|
||||
)
|
||||
|
||||
:: ----------------------------------------------------------------
|
||||
:: 6. Remove stale nested server mirror (not needed for portable)
|
||||
@@ -173,6 +170,15 @@ if not exist "%USB%\data\blueprints" mkdir "%USB%\data\blueprints"
|
||||
if not exist "%USB%\data\preps" mkdir "%USB%\data\preps"
|
||||
if not exist "%USB%\data\spread-kits" mkdir "%USB%\data\spread-kits"
|
||||
if not exist "%USB%\data\uploads" mkdir "%USB%\data\uploads"
|
||||
if not exist "%USB%\data\cloudflared-token.txt" (
|
||||
if exist "%ROOT%\data\cloudflared-token.txt" (
|
||||
copy /y "%ROOT%\data\cloudflared-token.txt" "%USB%\data\" >nul
|
||||
echo [7/8] Copied existing cloudflared-token.txt to USB data\.
|
||||
) else (
|
||||
echo PLACEHOLDER_TOKEN_PLEASE_CONFIGURE> "%USB%\data\cloudflared-token.txt"
|
||||
echo [7/8] Warning: no cloudflared-token.txt found, wrote placeholder.
|
||||
)
|
||||
)
|
||||
if not exist "%USB%\data\config.json" (
|
||||
echo [7/8] Writing starter config.json...
|
||||
powershell -NoProfile -Command ^
|
||||
|
||||
Reference in New Issue
Block a user