Package all of paulscode/ with the universal jar to help mac users who cant understand how to merge folders -.-
This commit is contained in:
parent
12d4e39bdd
commit
bb2ac4c448
1 changed files with 15 additions and 1 deletions
16
release.py
16
release.py
|
@ -45,6 +45,7 @@ def main():
|
|||
error_level = e.code
|
||||
|
||||
extract_fml_obfed()
|
||||
extract_paulscode()
|
||||
version = load_version(build_num)
|
||||
version_str = '%d.%d.%d.%d' % (version['major'], version['minor'], version['revision'], version['build'])
|
||||
|
||||
|
@ -152,12 +153,25 @@ def extract_fml_obfed():
|
|||
for line in lines:
|
||||
line = line.replace('\n', '').replace('\r', '').replace('/', os.sep)
|
||||
if not os.path.isfile(os.path.join(reobf_dir, line)):
|
||||
print line
|
||||
print ' %s' % line
|
||||
side = line.split(os.sep)[0]
|
||||
if side == 'minecraft':
|
||||
client.extract(line[10:].replace(os.sep, '/'), client_dir)
|
||||
|
||||
client.close()
|
||||
|
||||
def extract_paulscode():
|
||||
client = zipfile.ZipFile(os.path.join(mcp_dir, 'temp', 'client_reobf.jar'))
|
||||
|
||||
print 'Extracting Reobfed Paulscode for mac users -.-'
|
||||
|
||||
for i in client.filelist:
|
||||
if i.filename.startswith('paulscode'):
|
||||
if not os.path.isfile(os.path.join(client_dir, i.filename)):
|
||||
print ' %s' % i.filename
|
||||
client.extract(i.filename, client_dir)
|
||||
|
||||
client.close()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue