init
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
cd /d "%~dp0.."
|
||||
|
||||
set "APP_VERSION=1.0.0"
|
||||
set "APP_NAME=Avalonia-PC"
|
||||
set "APP_PUBLISHER=QiCheng"
|
||||
|
||||
echo Packaging %APP_NAME% %APP_VERSION% for Windows PC...
|
||||
echo.
|
||||
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0package-pc.ps1" -Version "%APP_VERSION%" -AppName "%APP_NAME%" -Publisher "%APP_PUBLISHER%" -SingleFile -InstallInnoSetupIfMissing
|
||||
|
||||
set "EXIT_CODE=%ERRORLEVEL%"
|
||||
echo.
|
||||
|
||||
if "%EXIT_CODE%"=="0" (
|
||||
echo Done.
|
||||
echo Installer output: %CD%\package-output\installer
|
||||
) else if "%EXIT_CODE%"=="2" (
|
||||
echo Publish completed, but installer was not created because Inno Setup 6 is not installed.
|
||||
echo This BAT can download Inno Setup into package-scripts\tools. Run it again and allow network access.
|
||||
echo.
|
||||
echo Publish output: %CD%\package-output\publish\Avalonia-PC
|
||||
) else (
|
||||
echo Packaging failed. Exit code: %EXIT_CODE%
|
||||
)
|
||||
|
||||
echo.
|
||||
pause
|
||||
exit /b %EXIT_CODE%
|
||||
Reference in New Issue
Block a user