import { Arch, Platform } from "electron-builder"
import { app } from "../helpers/packTester"
test.ifNotCiMac("web installer", ({ expect }) =>
app(expect, {
targets: Platform.WINDOWS.createTarget(["nsis-web"], Arch.x64, Arch.arm64),
config: {
publish: {
provider: "s3",
bucket: "develar",
path: "test",
},
electronFuses: {
runAsNode: true,
enableCookieEncryption: true,
enableNodeOptionsEnvironmentVariable: true,
enableNodeCliInspectArguments: true,
enableEmbeddedAsarIntegrityValidation: true,
onlyLoadAppFromAsar: true,
loadBrowserProcessSpecificV8Snapshot: true,
grantFileProtocolExtraPrivileges: undefined,
},
},
})
)
test.ifNotCiMac("web installer (default github)", ({ expect }) =>
app(expect, {
targets: Platform.WINDOWS.createTarget(["nsis-web"], Arch.ia32, Arch.x64, Arch.arm64),
config: {
publish: {
provider: "github",
repo: "foo/bar",
},
},
})
)
test.ifNotCiMac("web installer, safe name on github", ({ expect }) =>
app(expect, {
targets: Platform.WINDOWS.createTarget(["nsis-web"], Arch.x64),
config: {
productName: "WorkFlowy",
publish: {
provider: "github",
repo: "foo/bar",
},
nsisWeb: {
artifactName: "${productName}.${ext}",
},
},
})
)