Skip to content

Conversation

@sebyx07
Copy link

@sebyx07 sebyx07 commented Jan 9, 2026

Summary

  • Add convenience scripts for Linux users to build using Docker
  • scripts/build-linux.sh: Wrapper for the existing Docker infrastructure
  • scripts/install-to-game.sh: Install built files to existing game with backup/restore
  • Update .gitignore to exclude /tmp/, /.claude/, /CLAUDE.md
  • Update README.md with quick start build section

Changes

File Description
scripts/build-linux.sh Docker-based build script for Linux
scripts/install-to-game.sh Script to install built files to existing game
.gitignore Add /tmp/, /.claude/, /CLAUDE.md to ignored paths
README.md Add quick start build section for Windows and Linux

Usage

# Build using Docker
./scripts/build-linux.sh

# Build Zero Hour only
./scripts/build-linux.sh --game zh

# Install to your game (auto-detect)
./scripts/install-to-game.sh --detect

# Restore original files
./scripts/install-to-game.sh --restore /path/to/game

Test plan

  • Docker build completed successfully on Linux (Debian)
  • Scripts work with --help and --dry-run options
  • Built executables installed to existing game
  • Game launched successfully with built executable under Wine

Related

Add convenience scripts for Linux users to build using Docker:

- scripts/build-linux.sh: Docker-based build script for Linux that wraps
  the existing Docker infrastructure with Wine and VC6 toolchain
- scripts/install-to-game.sh: Script to install built files to existing
  game installation with backup/restore support
- .gitignore: Add /tmp/, /.claude/, /CLAUDE.md to ignored paths
- README.md: Add quick start build section for Windows and Linux

The Linux build uses the existing Docker infrastructure in
resources/dockerbuild to produce Windows-compatible executables
that can run under Wine.

Usage:
  ./scripts/build-linux.sh              # Build using Docker
  ./scripts/install-to-game.sh --detect # Install to your game
@sebyx07 sebyx07 force-pushed the feature/linux-build-support branch from 11b910d to 1f325c0 Compare January 9, 2026 22:19
@xezon xezon added Documentation Is documentation or complementary resource Build Anything related to building, compiling Platform Work towards platform support, such as Linux, MacOS labels Jan 10, 2026
@xezon xezon added this to the Linux support milestone Jan 10, 2026
Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I did not study the scripts but if it works for the author then its good enough.

done

# Fallback: Common Linux Wine locations
for prefix in ~/.wine ~/.wine32 ~/.wine-* ~/.local/share/Steam/steamapps/compatdata/*/pfx; do
Copy link

@stephanmeesters stephanmeesters Jan 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Afaik Steam doesn't install binaries in pfx but it puts them in Steam/steamapps/common/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Anything related to building, compiling Documentation Is documentation or complementary resource Platform Work towards platform support, such as Linux, MacOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants