[izpack-changes] r1975 - izpack-utils/trunk/izpack2exe
noreply at berlios.de
noreply at berlios.de
Thu Jan 3 21:56:04 CET 2008
Author: jponge
Date: 2008-01-03 21:56:00 +0100 (Thu, 03 Jan 2008)
New Revision: 1975
Modified:
izpack-utils/trunk/izpack2exe/izpack2exe.py
Log:
Bugfix: write the filename to the 7-Zip SFX configuration descriptor instead of the input Jar path...
Modified: izpack-utils/trunk/izpack2exe/izpack2exe.py
===================================================================
--- izpack-utils/trunk/izpack2exe/izpack2exe.py 2008-01-03 20:45:02 UTC (rev 1974)
+++ izpack-utils/trunk/izpack2exe/izpack2exe.py 2008-01-03 20:56:00 UTC (rev 1975)
@@ -44,6 +44,7 @@
return options
def create_exe(settings):
+ filename = os.path.basename(settings.file)
p7z = '"%s" a -t7z -mx=9 -ms=off installer.7z %s' % (settings.p7z, settings.file)
os.system(p7z)
@@ -51,7 +52,7 @@
config.write(';!@Install@!UTF-8!\r\n')
config.write('Title="IzPack"\r\n')
config.write('Progress="yes"\r\n')
- config.write('ExecuteFile="%s"\r\n' % settings.file)
+ config.write('ExecuteFile="%s"\r\n' % filename)
config.write(';!@InstallEnd@!\r\n')
config.close()
More information about the izpack-changes
mailing list