Repair jar stager generation
parent
64e4b370df
commit
e5729e67d5
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue