Invoke xz -9 explicitly instead of trusting tar to interpret XZ_OPT
This commit is contained in:
parent
2b8a1cee8c
commit
5b9620bc2d
1 changed files with 5 additions and 2 deletions
|
|
@ -679,10 +679,13 @@ RunProgram="tools\downloader.exe"
|
||||||
if execShellCmd("7z a -sfx7zS2.sfx -t7z $1.exe $1" % proj) != 0:
|
if execShellCmd("7z a -sfx7zS2.sfx -t7z $1.exe $1" % proj) != 0:
|
||||||
echo("External program failed (7z)")
|
echo("External program failed (7z)")
|
||||||
else:
|
else:
|
||||||
if execShellCmd("XZ_OPT=-9 gtar Jcf $1.tar.xz $1 --exclude=.DS_Store" %
|
if execShellCmd("gtar cf $1.tar $1 --exclude=.DS_Store" %
|
||||||
proj) != 0:
|
proj) != 0:
|
||||||
# try old 'tar' without --exclude feature:
|
# try old 'tar' without --exclude feature:
|
||||||
if execShellCmd("XZ_OPT=-9 tar Jcf $1.tar.xz $1" % proj) != 0:
|
if execShellCmd("tar cf $1.tar $1" % proj) != 0:
|
||||||
|
echo("External program failed")
|
||||||
|
|
||||||
|
if execShellCmd("xz -9f $1.tar" % proj) != 0:
|
||||||
echo("External program failed")
|
echo("External program failed")
|
||||||
finally:
|
finally:
|
||||||
setCurrentDir(oldDir)
|
setCurrentDir(oldDir)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue