mirror of
https://github.com/Architeuthis-Flux/JumperlessV5.git
synced 2025-09-05 10:47:58 +00:00
4.1 KiB
4.1 KiB
Clean Packaging Workflow
The packager has been updated to keep the workspace clean and make it clear which AppImage to run.
What's New
🧹 Automatic Cleanup
- The packager now automatically removes intermediate files after packaging
- No more confusion about which AppImage to run
- Clean workspace after packaging completes
📦 Clear Final Locations
- Final AppImages:
builds/linux/appimage/
Jumperless-x86_64.AppImage
(for most Linux PCs)Jumperless-aarch64.AppImage
(for ARM64 systems like Raspberry Pi)
- Python packages:
builds/linux/python/
- Windows packages:
builds/windows/
- macOS packages:
builds/macos/
🚀 Simple Launchers
run_jumperless.sh
- Smart launcher that detects architecture and finds AppImagerun_direct.sh
- Direct launcher that runs AppImage with minimal checks
Usage
Option 1: Smart Launcher (Recommended)
./run_jumperless.sh
Option 2: Direct Runner (If smart launcher has issues)
./run_direct.sh
Option 3: Run AppImage Directly
# Navigate to the AppImage directory
cd builds/linux/appimage/
# Make executable (one time only)
chmod +x Jumperless-*.AppImage
# Run the AppImage
./Jumperless-x86_64.AppImage # For x86_64 systems
./Jumperless-aarch64.AppImage # For ARM64 systems
Option 4: Package and Run
# Package the application
python3 JumperlessAppPackager.py
# Run with launcher
./run_jumperless.sh
Launcher Features
run_jumperless.sh
(Smart Launcher)
- ✅ Detects system architecture automatically
- ✅ Searches multiple locations for AppImage
- ✅ Makes AppImage executable if needed
- ✅ Provides helpful error messages
- ✅ Passes all arguments to the AppImage
run_direct.sh
(Direct Runner)
- ✅ Minimal overhead - runs AppImage directly
- ✅ Simple architecture detection
- ✅ No fancy features that might cause issues
- ✅ Best for troubleshooting
Files Cleaned Up
The packager now removes these intermediate files:
dist/
- PyInstaller output directorybuild/
- PyInstaller build directoryJumperlessLinux_x64.AppDir/
- AppImage structure directoryJumperlessLinux_arm64.AppDir/
- AppImage structure directoryJumperless-*.AppImage
- Intermediate AppImage files in root*.spec
- PyInstaller spec files__pycache__/
- Python cache directories- Various temporary files
Manual Cleanup
If you need to clean up manually:
python3 -c "
import sys
sys.path.insert(0, '.')
from JumperlessAppPackager import cleanup_intermediate_files
cleanup_intermediate_files()
"
Benefits
- No Confusion: Clear which AppImage to run
- Clean Workspace: No intermediate files cluttering the directory
- Easy Launch: Simple launcher scripts handle everything
- Architecture Detection: Automatically runs the right AppImage for your system
- Better Organization: Final packages are in organized
builds/
directories - Multiple Options: Choose the launcher that works best for your setup
Directory Structure After Packaging
JumperlessWokwiBridge/
├── builds/
│ ├── linux/
│ │ ├── appimage/
│ │ │ ├── Jumperless-x86_64.AppImage ← Run this on x86_64
│ │ │ └── Jumperless-aarch64.AppImage ← Run this on ARM64
│ │ └── python/
│ │ └── Jumperless_Linux.tar.gz
│ ├── windows/
│ └── macos/
├── run_jumperless.sh ← Smart launcher
├── run_direct.sh ← Direct launcher
├── JumperlessAppPackager.py ← Updated packager
└── ... (other project files)
Troubleshooting
If you have issues with the launchers:
- Try the direct runner:
./run_direct.sh
- Run AppImage directly:
cd builds/linux/appimage/ && ./Jumperless-*.AppImage
- Check permissions: Make sure scripts are executable (
chmod +x *.sh
) - Verify AppImage exists: Check
builds/linux/appimage/
directory
The workspace root stays clean with only the essential files visible!