-powershell -NoProfile -ExecutionPolicy Bypass -Command "Compress-Archive -Force -Path friidump.exe,docs,README,AUTHORS,COPYING,config.h,msvc32_friidump.rsp,build_msvc32.cmd,.vscode -DestinationPath friidump_msvc32_build_results.zip"
+set "HELP_LOG=%TEMP%\friidump-help-%RANDOM%-%RANDOM%.txt"
+"%~dp0friidump.exe" --help > "%HELP_LOG%" 2>&1
+type "%HELP_LOG%"
+
+findstr /c:"FriiDump 0.5.3.16-pf1-candidate21" "%HELP_LOG%" >nul
+if errorlevel 1 (
+ echo [ERROR] FriiDump help/version smoke test failed.
+ del /q "%HELP_LOG%" >nul 2>nul
+ if exist "friidump.log" del /q "friidump.log"
+ exit /b 1
+)
+
+for %%T in ("--report-json" "--report-dir" "--firmware-modified") do (
+ findstr /l /c:"%%~T" "%HELP_LOG%" >nul
+ if errorlevel 1 (
+ echo [ERROR] Native-report option %%~T is missing from help output.
+ del /q "%HELP_LOG%" >nul 2>nul
+ if exist "friidump.log" del /q "friidump.log"
+ exit /b 1
+ )
+)
+
+for %%T in ("reports are created by default" "beside the final log" "may be combined with --report-json" "omission assumes stock") do (
+ findstr /l /c:"%%~T" "%HELP_LOG%" >nul
+ if errorlevel 1 (
+ echo [ERROR] Native-report default/override contract is missing from help output: %%~T
+ del /q "%HELP_LOG%" >nul 2>nul
+ if exist "friidump.log" del /q "friidump.log"
+ exit /b 1
+ )
+)
+
+del /q "%HELP_LOG%" >nul 2>nul
+if exist "friidump.log" del /q "friidump.log"
+
+powershell -NoProfile -ExecutionPolicy Bypass -Command "Compress-Archive -Force -Path friidump.exe,redump_dat,docs,README,README.md,AUTHORS,COPYING,config.h,msvc32_friidump.rsp,build_msvc32.cmd,build_msvc32_native_report_tests.cmd,msvc32_native_report_tests.rsp,build_msvc32_xbox_portable_tests.cmd,msvc32_xbox_portable_tests.rsp,tests,.vscode -DestinationPath friidump_msvc32_build_results.zip"