Integrate AutoInstaller GUI build and cleanup into main project scripts

- Update cleanup.sh to call autoinstaller_gui/cleanup.sh for comprehensive cleanup
- Update build.sh to automatically build AutoInstaller GUI binary after successful ISO build
- Copy the built binary to config/includes.chroot/usr/local/bin/autoinstallergui
- Ensure the GUI binary is included in the live system and accessible via .xinitrc
- Make binary executable and properly integrated into the live system
- This provides seamless integration of the GUI into the main build process

This ensures the AutoInstaller GUI is automatically built and included
in the live system whenever the main project is built, providing
users with the graphical installer option out of the box.
parent ed7187d2
...@@ -127,6 +127,26 @@ BUILD_EXIT_CODE=$? ...@@ -127,6 +127,26 @@ BUILD_EXIT_CODE=$?
if [ $BUILD_EXIT_CODE -eq 0 ]; then if [ $BUILD_EXIT_CODE -eq 0 ]; then
echo "Build completed successfully!" echo "Build completed successfully!"
echo "ISO file: $(ls live-image-amd64.iso 2>/dev/null || ls *.iso 2>/dev/null || echo 'Not found')" echo "ISO file: $(ls live-image-amd64.iso 2>/dev/null || ls *.iso 2>/dev/null || echo 'Not found')"
# Build AutoInstaller GUI binary
echo "Building AutoInstaller GUI binary..."
if [ -d "autoinstaller_gui" ] && [ -f "autoinstaller_gui/build_autoinstaller_gui.py" ]; then
cd autoinstaller_gui
python3 build_autoinstaller_gui.py
if [ -f "dist/autoinstallergui" ]; then
echo "AutoInstaller GUI binary built successfully"
# Copy binary to live system
mkdir -p ../config/includes.chroot/usr/local/bin
cp dist/autoinstallergui ../config/includes.chroot/usr/local/bin/autoinstallergui
chmod +x ../config/includes.chroot/usr/local/bin/autoinstallergui
echo "AutoInstaller GUI binary copied to live system"
else
echo "Warning: AutoInstaller GUI binary not found after build"
fi
cd ..
else
echo "Warning: AutoInstaller GUI build script not found"
fi
else else
echo "Build failed. Check build.log for errors." echo "Build failed. Check build.log for errors."
......
...@@ -243,6 +243,17 @@ done ...@@ -243,6 +243,17 @@ done
echo "PyInstaller cleanup completed" echo "PyInstaller cleanup completed"
# Clean AutoInstaller GUI artifacts
if [ -d "autoinstaller_gui" ]; then
echo "Cleaning AutoInstaller GUI artifacts..."
cd autoinstaller_gui
if [ -f "cleanup.sh" ]; then
bash cleanup.sh
fi
cd ..
echo "AutoInstaller GUI cleanup completed"
fi
# Clean live-build cache and temporary files # Clean live-build cache and temporary files
if [ "$NO_CACHE" = false ]; then if [ "$NO_CACHE" = false ]; then
echo "Running live-build cleanup (removing cache)..." echo "Running live-build cleanup (removing cache)..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment