zip update processing

This commit is contained in:
idk
2022-10-23 16:05:46 -04:00
parent 6fbe64d8e2
commit 7e21d86ab4
2 changed files with 17 additions and 31 deletions

View File

@ -39,6 +39,11 @@ public class WindowsUpdatePostProcessor implements UpdatePostProcessor {
String version, File file)
throws IOException {
_log.info("Got an update to post-process");
if (type != UpdateType.ROUTER_SIGNED_SU3 &&
type != UpdateType.ROUTER_DEV_SU3) {
_log.warn("Unsupported update type " + type);
return;
}
if (fileType != SU3File.TYPE_ZIP) {
this.positionedFile = moveUpdateInstaller(file);
this.version = version;
@ -55,12 +60,6 @@ public class WindowsUpdatePostProcessor implements UpdatePostProcessor {
}
if (SystemVersion.isWindows()) {
if (type != UpdateType.ROUTER_SIGNED_SU3 &&
type != UpdateType.ROUTER_DEV_SU3) {
_log.warn("Unsupported update type " + type);
return;
}
if (fileType != SU3File.TYPE_EXE) {
_log.warn("Unsupported file type " + fileType);
return;