diff --git a/scripts/generate_invalid_version_zip.luau b/scripts/generate_invalid_version_zip.luau index 22f8a55..4fe4a53 100644 --- a/scripts/generate_invalid_version_zip.luau +++ b/scripts/generate_invalid_version_zip.luau @@ -1,6 +1,6 @@ -local fs = require("@lune/fs") -local stdio = require("@lune/stdio") -local process = require("@lune/process") +local fs = require("@lune/fs") +local stdio = require("@lune/stdio") +local process = require("@lune/process") -- stylua: ignore local function createZip(version: number): buffer @@ -72,9 +72,9 @@ local function createZip(version: number): buffer buffer.copy(result, 0, data, 0, pos) return result end - --- Write the invalid ZIP file -local versionNum = assert(tonumber(process.args[1] or stdio.prompt("text", "Version number:"))) -local zip = createZip(versionNum) -fs.writeFile("tests/data/invalid_version.zip", zip) -print(`Generated invalid_version.zip with version requirement {versionNum // 10}.{versionNum % 10}`) + +-- Write the invalid ZIP file +local versionNum = assert(tonumber(process.args[1] or stdio.prompt("text", "Version number:"))) +local zip = createZip(versionNum) +fs.writeFile("tests/data/invalid_version.zip", zip) +print(`Generated invalid_version.zip with version requirement {versionNum // 10}.{versionNum % 10}`)