mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
CCK only - not part of build Only use the ZipWritercomponent if a zip EXE isn't specified. also, if ZipWriterComponent fails, try zip.exe
This commit is contained in:
parent
2607a65d20
commit
762154f53a
@ -1086,7 +1086,7 @@ function CCKZip(zipfile, location)
|
|||||||
file.remove(false);
|
file.remove(false);
|
||||||
} catch (ex) {}
|
} catch (ex) {}
|
||||||
|
|
||||||
if (Components.interfaces.IZipWriterComponent) {
|
if ((document.getElementById("zipLocation").value == "") && (Components.interfaces.IZipWriterComponent)) {
|
||||||
var archivefileobj = location.clone();
|
var archivefileobj = location.clone();
|
||||||
archivefileobj.append(zipfile);
|
archivefileobj.append(zipfile);
|
||||||
|
|
||||||
@ -1140,11 +1140,10 @@ function CCKZip(zipfile, location)
|
|||||||
}
|
}
|
||||||
|
|
||||||
zipwriterobj.commitUpdates();
|
zipwriterobj.commitUpdates();
|
||||||
|
|
||||||
} catch (e) {
|
|
||||||
gPromptService.alert(window, "", "ZIPWriterComponent error");
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
|
} catch (e) {
|
||||||
|
gPromptService.alert(window, "", "ZIPWriterComponent error - attempting ZIP");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var zipLocation = document.getElementById("zipLocation").value;
|
var zipLocation = document.getElementById("zipLocation").value;
|
||||||
|
Loading…
Reference in New Issue
Block a user