mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06:00
34 lines
1 KiB
Python
34 lines
1 KiB
Python
#!/usr/bin/env python2
|
|
import os
|
|
import sys
|
|
|
|
import argparse
|
|
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('--build-dir', default='build',
|
|
help='The directory of which the build was prepared.')
|
|
parser.add_argument('--output', default='GameData.pyd',
|
|
help='The built file.')
|
|
parser.add_argument('--main-module', default='unlimited.base.ClientStart',
|
|
help='The module to load at the start of the game.')
|
|
parser.add_argument('modules', nargs='*', default=['shared', 'unlimited'],
|
|
help='The Toontown Unlimited modules to be included in the build.')
|
|
args = parser.parse_args()
|
|
|
|
print 'Building the client...'
|
|
|
|
os.chdir(args.build_dir)
|
|
|
|
cmd = sys.executable + ' -m direct.showutil.pfreeze'
|
|
args.modules.extend(['direct', 'pandac'])
|
|
for module in args.modules:
|
|
cmd += ' -i %s.*.*' % module
|
|
cmd += ' -i encodings.*'
|
|
cmd += ' -i base64'
|
|
cmd += ' -i site'
|
|
cmd += ' -o ' + args.output
|
|
cmd += ' ' + args.main_module
|
|
os.system(cmd)
|
|
|
|
print 'Done building the client.'
|