from zipfile import ZipFile import os # Pad naar de HTML5-game directory (gesimuleerd hier als voorbeeld) html_game_dir = "/mnt/data/RealmClash_HTML5" # Output ZIP-bestand output_zip_path = "/mnt/data/RealmClash_HTML5_Build.zip" # ZIP-bestand aanmaken with ZipFile(output_zip_path, 'w') as zipf: for foldername, subfolders, filenames in os.walk(html_game_dir): for filename in filenames: file_path = os.path.join(foldername, filename) arcname = os.path.relpath(file_path, html_game_dir) zipf.write(file_path, arcname) output_zip_path