2026-10-19 18:08:35 +08:00
|
|
|
@echo off
|
|
|
|
|
setlocal
|
|
|
|
|
cd /d "%~dp0"
|
2026-10-22 15:33:18 +08:00
|
|
|
title Haining Card Reader package
|
2026-10-19 18:08:35 +08:00
|
|
|
|
|
|
|
|
where powershell.exe >nul 2>&1
|
|
|
|
|
if errorlevel 1 (
|
|
|
|
|
echo [ERROR] PowerShell was not found.
|
|
|
|
|
pause
|
|
|
|
|
exit /b 1
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0build.ps1"
|
|
|
|
|
set "RESULT=%ERRORLEVEL%"
|
|
|
|
|
echo.
|
|
|
|
|
if not "%RESULT%"=="0" (
|
|
|
|
|
echo Packaging failed. Review the error above.
|
|
|
|
|
pause
|
|
|
|
|
exit /b %RESULT%
|
|
|
|
|
)
|
2026-10-22 15:33:18 +08:00
|
|
|
echo Packaging completed. Open the dist folder to find HainingCardReader.exe.
|
2026-10-19 18:08:35 +08:00
|
|
|
start "" "%~dp0dist"
|
|
|
|
|
pause
|