1
0
mirror of https://github.com/factoriotools/factorio-docker.git synced 2026-04-26 20:42:17 +02:00
Files
Florian Kinder 551f3d835b Fix ARM64 emulation support in all entrypoints (#587)
* Fix ARM64 emulation support in all entrypoints

- Add shared setup-exec.sh script to handle ARM64 emulation logic
- Update scenario.sh and scenario2map.sh to use box64 emulation on ARM64
- Refactor docker-entrypoint.sh and docker-entrypoint-rootless.sh to use shared script
- Ensures all factorio binary calls work correctly on ARM64 platforms

Fixes #585

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

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix shellcheck warnings in entrypoint scripts

- Add shellcheck disable=SC1091 for dynamic source paths
- Quote INSTALLED_DIRECTORY variables to prevent word splitting
- Resolves all reported shellcheck issues in PR review

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

Co-Authored-By: Claude <noreply@anthropic.com>

* Add DLC handling to scenario.sh entrypoint

The docker-dlc.sh script was only called in docker-entrypoint.sh,
not in scenario.sh. This caused DLC_SPACE_AGE=false to not be
applied when using the scenario entrypoint, breaking it for users
without the Space Age DLC.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-13 21:48:28 +01:00

16 lines
447 B
Bash

#!/bin/bash
# Setup EXEC variable for running Factorio with ARM64 emulation support
# This script handles ARM64 emulation and can be combined with user switching as needed
# If EXEC is not already set, initialize it
if [[ -z "${EXEC:-}" ]]; then
EXEC=""
fi
if [[ -f /bin/box64 ]]; then
# Use an emulator to run on ARM hosts
# this only gets installed when the target docker platform is linux/arm64
EXEC="$EXEC /bin/box64"
fi
export EXEC