From f5518867bfee4ba7a6e25b6a51ec6d705516e6ee Mon Sep 17 00:00:00 2001 From: Paul Kendall Date: Fri, 20 Dec 2024 16:54:33 +1300 Subject: [PATCH] Download a zip file for HDZero goggles --- src/pages/Download.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/Download.vue b/src/pages/Download.vue index b3241a9..7dfbf44 100644 --- a/src/pages/Download.vue +++ b/src/pages/Download.vue @@ -31,7 +31,8 @@ async function downloadFirmware() { const bin = pako.gzip(files.firmwareFiles[files.firmwareFiles.length - 1].data) const data = new Blob([bin], {type: 'application/octet-stream'}) FileSaver.saveAs(data, 'firmware.bin.gz') - } else if (store.target.config.upload_methods.includes('zip')) { + } else if (store.target.config.upload_methods.includes('zip') || + (store.targetType === 'vrx' && store.vendor === 'hdzero-goggle')) { // or HDZero Goggles // create zip file const zipper = new zip.ZipWriter(new zip.BlobWriter("application/zip"), {bufferedWrite: true}) await zipper.add('bootloader.bin', new Blob([files.firmwareFiles[0].data.buffer], {type: 'application/octet-stream'}).stream())