Files
factorio-docker/build-rootless.py
Florian Kinder f86d9ef67f refactor: Unify build system for regular and rootless images
- Create build-unified.py that handles both regular and rootless builds
- Convert build.py and build-rootless.py to wrapper scripts for backwards compatibility
- Update CI workflow to use unified build command
- Add BUILD_MIGRATION.md documentation
- Eliminate code duplication between build scripts
- Support flexible build options: --rootless, --both, --only-stable-latest

This maintains all existing functionality while providing a cleaner, more maintainable build system.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 13:12:50 +09:00

15 lines
407 B
Python
Executable File

#!/usr/bin/env python3
"""
Legacy wrapper script for backwards compatibility.
This script now calls build-unified.py to build rootless images.
"""
import subprocess
import sys
# Convert arguments and pass to unified script with --rootless flag
args = ["./build-unified.py", "--rootless", "--only-stable-latest"]
args.extend(sys.argv[1:])
# Execute the unified build script
sys.exit(subprocess.call(args))