mavenization

This commit is contained in:
Branislav Stojkovic
2025-03-10 15:32:45 +01:00
parent 038e2bcbb4
commit 2caa91eb2e
49 changed files with 4899 additions and 0 deletions
@@ -0,0 +1,67 @@
@echo off
echo ========================================
echo 🚀 Setting up WSL and AppImage Builder
echo ========================================
echo.
:: Check if WSL is installed
wsl --version >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo 🔹 Installing WSL...
wsl --install -d Ubuntu22.04
echo ✅ WSL installed! Please restart your computer and re-run this script.
exit /b
)
echo 🔹 Ensuring Ubuntu is set as default WSL distribution...
wsl --set-default Ubuntu
:: Check if WSL is running
wsl echo "WSL is running..."
if %ERRORLEVEL% NEQ 0 (
echo � ERROR: WSL is not running. Please restart your system and try again.
exit /b
)
:: Update and install dependencies inside WSL
echo 🔹 Installing dependencies inside WSL...
wsl sudo apt update && sudo apt install -y \
wget \
fuse \
libfuse2 \
ca-certificates \
xz-utils \
file \
appstream \
gpg \
libc6 \
binfmt-support \
tree
wsl sudo apt update && sudo apt install -y libfuse2
echo ✅ Dependencies installed!
:: Download AppImageTool inside WSL
echo 🔹 Downloading AppImageTool...
wsl bash -c "wget -O ~/appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage && chmod +x ~/appimagetool"
:: Verify AppImageTool installation
echo 🔹 Verifying AppImageTool installation...
wsl bash -c "~/appimagetool --version"
if %ERRORLEVEL% NEQ 0 (
echo � ERROR: AppImageTool failed to execute.
echo Please check if WSL is running properly and try again.
exit /b
)
set
echo ✅ WSL is now ready for ANT to build AppImages!
echo.
:: Optional: Open WSL shell for user confirmation
echo 🔹 Opening WSL shell...
wsl
exit /b