mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
4093641b7e
* mavenize * mavenization * mavenization * mavenization * mavenization * mavenization * mavenization * mavenization * mavenization * fix * app framework update * fix lib * lib * fix mavenized * fix mavenized * fix mavenized * fix mavenized * fix mavenized * fix mavenized * fix mavenized * fix mavenized * building for win and linux * Create run.bat * fixes for netlist * cleanup * unit tests * unit tests * configurable high dpi * performance upgrade * performance upgrade * rotate bug * Omit boards, wires, traces, terminals, etc from Spice netlist output * splash version update * optimize libs * optimize libs * updates * mac build maven * ruler optimization, moved images * cleanup * notarization * test workflow * build * Update pom.xml * Update pom.xml * Create README.md * Create test.yml * maven * build
68 lines
1.7 KiB
Batchfile
68 lines
1.7 KiB
Batchfile
@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
|