TRX/tools/docker/game-linux/entrypoint.sh

21 lines
494 B
Bash
Raw Normal View History

2024-03-25 11:09:05 +01:00
#!/usr/bin/env python3
from pathlib import Path
2023-09-20 14:00:42 +02:00
2024-03-25 11:09:05 +01:00
from shared.docker import BaseGameEntrypoint
2023-09-20 14:00:42 +02:00
2024-03-25 11:09:05 +01:00
class LinuxEntrypoint(BaseGameEntrypoint):
BUILD_ROOT = Path("/app/build/linux/")
COMPILE_ARGS = []
RELEASE_ZIP_SUFFIX = "Linux"
RELEASE_ZIP_FILES = [
(BUILD_ROOT / "TR1X", "TR1X"),
]
2023-09-20 14:00:42 +02:00
2024-03-25 11:09:05 +01:00
def post_compile(self) -> None:
if self.target == "release":
self.compress_exe(self.BUILD_ROOT / "TR1X")
if __name__ == "__main__":
LinuxEntrypoint().run()