You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
839 B

@echo off
chcp 65001 >nul
echo Publishing Avalonia app to Linux...
echo.
REM Clean previous publish files
if exist "publish\linux-x64" (
echo Cleaning old publish files...
rmdir /s /q "publish\linux-x64"
)
REM Publish to Linux x64
echo Publishing to Linux x64 platform...
dotnet publish -c Release -r linux-x64 --self-contained true -o "publish\linux-x64"
if %ERRORLEVEL% EQU 0 (
echo.
echo [SUCCESS] Publish completed!
echo [INFO] Publish location: publish\linux-x64\
echo.
echo [FILES] Published files:
dir "publish\linux-x64" /b
echo.
echo [NEXT STEPS]
echo 1. Copy publish\linux-x64\ folder to WSL Ubuntu
echo 2. In Ubuntu run: chmod +x MyAvaloniaApp
echo 3. In Ubuntu run: ./MyAvaloniaApp
echo.
) else (
echo [ERROR] Publish failed! Please check error messages.
)
pause