Repair jar stager generation

readme-wiki
xorrior 2017-11-01 20:48:34 -04:00
parent 64e4b370df
commit e5729e67d5
1 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import fnmatch
import imp import imp
import helpers import helpers
import os import os
import errno
import macholib.MachO import macholib.MachO
import shutil import shutil
import zipfile import zipfile
@ -443,6 +444,15 @@ class Stagers:
javacode = file.read() javacode = file.read()
file.close() file.close()
javacode = javacode.replace("LAUNCHER",launcherCode) javacode = javacode.replace("LAUNCHER",launcherCode)
jarpath = self.mainMenu.installPath+'data/misc/classes/com/installer/apple/'
try:
os.makedirs(jarpath)
except OSError as e:
if e.errno != errno.EEXIST:
raise
else:
pass
file = open(self.mainMenu.installPath+'data/misc/classes/com/installer/apple/Run.java','w') file = open(self.mainMenu.installPath+'data/misc/classes/com/installer/apple/Run.java','w')
file.write(javacode) file.write(javacode)
file.close() file.close()