mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
b657a4d53f
* gerber initial implementation * added icon * refactor actions * add ground fill for gerber * reorganize export actions * fix gerber export of pcb text * handle negative pcb text * improve positioning of pcb text * add board outline for gerber * add support for other pad shapes * handle 0 hole size * added solder mask layer * refactor gerber support to simplify components * added silk screen support, some refactor * libs * fix mirroring * outline support * simplify layers * Fix board alignment * handle circular pads * handle empty string * update * fixes * add text to silk * fix text tracing * cleanup * fix layer id * optimize continuity calculations * Solder pad - pth vs npth * gerber fixes * netlist improvement * Update update.xml * Pasting a building block sometimes messes up the z-order of components * Pasting a building block sometimes switches selection to previously added components and canvas moves to the wrong position * 'Highlight Continuity Areas' sometimes renders stale areas when clicked * beta build * fix builds * appimage * appimage * appimage * fix building from downloaded jre * disable fractional metrics * appimage * Create build.zip * bat for setup * fix for high DPI monitors * fixes * scaling * appimage * 4.41 release * cleanup * Update org.eclipse.core.resources.prefs
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
|