Browse Source

Copy the game library when compiling

Daniele Bartolini 12 năm trước cách đây
mục cha
commit
fb30c54d32
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      tools/compilers/resource-compiler.py

+ 5 - 0
tools/compilers/resource-compiler.py

@@ -26,11 +26,13 @@
 
 import sys
 import os
+import shutil
 
 from pycrown import Repository
 from pycrown import Compiler
 
 PERFECT_SEED_FILE = "seed.ini"
+GAME_LIBRARY_FILE = "libgame.so"
 
 # Helper for compiling resources
 class CompilerHelper:
@@ -83,6 +85,9 @@ class CompilerHelper:
 		print("Compiling resources...")
 		self.m_compiler.compile_all()
 
+		print("Copying game library...")
+		shutil.copy(self.root_path() + "/" + GAME_LIBRARY_FILE, self.dest_path())
+
 		print("Writing perfect seed...")
 		self.write_perfect_seed()