fix: six maintenance fixes across LAUNCH.bat, config, go.mod, and gitignore

- LAUNCH.bat (root + usb): add :server_launch fast-path so server always
  starts even when Go is not found; only obfuscation tools are skipped
- LAUNCH.bat (root + usb): fix misleading echo -- credentials are printed
  by AetherForge.exe itself, not by the batch script
- usb/data/config.json: correct SupportXMR TLS port (3333->443) and add
  MoneroOcean and HeroMiners backup pool entries
- server/go.mod: bump go directive from 1.25.0 to 1.26.3 to match bundled
  toolchain version used by LAUNCH.bat and pack-usb.bat
- pack-usb.bat: replace four Unicode em-dash characters (U+2014) with plain
  ASCII hyphens to avoid garbled output on non-UTF-8 code pages
- .gitignore: add _err.txt, _out.txt, and _*.txt pattern to suppress
  recurring untracked temp debug files in repo root
This commit is contained in:
AetherForge
2026-06-01 21:40:06 -07:00
parent 7d186d9c49
commit ea504b83e2
5 changed files with 22 additions and 131 deletions

View File

@@ -58,69 +58,11 @@ if not errorlevel 1 (
goto go_ready
)
:: Go not found - extract bundled zip or download once
echo [Go] Not found. Setting up portable Go toolchain...
echo Saved under: %ROOT%\toolchain\go\
:: Go not found anywhere - skip optional tools, proceed directly to server
echo.
if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
set "GO_ARCH=amd64"
) else if /i "%PROCESSOR_ARCHITECTURE%"=="ARM64" (
set "GO_ARCH=arm64"
) else (
set "GO_ARCH=386"
)
set "GO_VERSION=1.26.3"
set "GO_ZIP=go%GO_VERSION%.windows-%GO_ARCH%.zip"
set "GO_PACK_ZIP=%ROOT%\toolchain\pack\%GO_ZIP%"
set "GO_DEST=%ROOT%\toolchain\%GO_ZIP%"
if not exist "%ROOT%\toolchain" mkdir "%ROOT%\toolchain"
if not exist "%ROOT%\toolchain\pack" mkdir "%ROOT%\toolchain\pack"
if exist "%GO_PACK_ZIP%" (
echo [Go] Extracting bundled %GO_ZIP%...
copy /y "%GO_PACK_ZIP%" "%GO_DEST%" >nul
) else (
echo [Go] Downloading %GO_ZIP% from go.dev...
set "GO_URL=https://go.dev/dl/%GO_ZIP%"
powershell -NoProfile -Command "& { [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri '%GO_URL%' -OutFile '%GO_DEST%' }"
if errorlevel 1 (
echo.
echo ERROR: Could not download Go. Copy toolchain\go\ from a PC that has it,
echo or add toolchain\pack\%GO_ZIP% to this folder, then re-run LAUNCH.bat.
echo.
pause
exit /b 1
)
)
if not exist "%GO_DEST%" (
echo ERROR: Go archive missing after copy/download.
pause
exit /b 1
)
echo [Go] Extracting toolchain...
powershell -NoProfile -Command "Expand-Archive -LiteralPath '%GO_DEST%' -DestinationPath '%ROOT%\toolchain' -Force"
if errorlevel 1 (
echo ERROR: Extraction failed. Check free disk space and path: %ROOT%\toolchain
pause
exit /b 1
)
del "%GO_DEST%" 2>nul
if not exist "%BUNDLED_GO%" (
echo ERROR: Extraction failed - %BUNDLED_GO% not found.
echo Delete toolchain\go and toolchain\pack, then re-run LAUNCH.bat.
pause
exit /b 1
)
set "GO_BIN=%ROOT%\toolchain\go\bin\go.exe"
set "GOROOT=%ROOT%\toolchain\go"
set "PATH=%ROOT%\toolchain\go\bin;%ROOT%\toolchain\gopath\bin;%PATH%"
echo [Go] Toolchain ready.
echo [Go] Go not found - Forge obfuscation tools unavailable. Running server without them.
echo.
goto server_launch
:go_ready
@@ -151,6 +93,8 @@ if /i not "%AF_INSTALL_TOOLS%"=="0" (
echo [Tools] Auto-install disabled ^(AF_INSTALL_TOOLS=0^).
)
:server_launch
:: ----------------------------------------------------------------
:: 4. Ensure data directories exist
:: ----------------------------------------------------------------
@@ -187,7 +131,7 @@ echo Local: http://localhost:%SERVER_PORT%
echo LAN: http://%LAN_IP%:%SERVER_PORT%
echo Data: %ROOT%\data\
echo.
echo Login credentials printed below.
echo First-run credentials will appear below after server starts.
echo Press Ctrl+C to stop.
echo ================================================================
echo.