import { Platform } from "electron-builder"
import { app } from "../helpers/packTester"
test.ifDevOrLinuxCi("targets", ({ expect }) =>
app(expect, {
targets: Platform.LINUX.createTarget(["sh", "freebsd", "pacman", "zip", "7z"]),
config: {
electronFuses: {
runAsNode: true,
enableCookieEncryption: true,
enableNodeOptionsEnvironmentVariable: true,
enableNodeCliInspectArguments: true,
enableEmbeddedAsarIntegrityValidation: true,
onlyLoadAppFromAsar: true,
loadBrowserProcessSpecificV8Snapshot: true,
grantFileProtocolExtraPrivileges: undefined,
},
},
})
)
test.ifDevOrLinuxCi("rpm and tar.gz", ({ expect }) =>
app(expect, {
targets: Platform.LINUX.createTarget(["rpm", "tar.gz"]),
config: {
electronFuses: {
runAsNode: true,
enableCookieEncryption: true,
enableNodeOptionsEnvironmentVariable: true,
enableNodeCliInspectArguments: true,
enableEmbeddedAsarIntegrityValidation: true,
onlyLoadAppFromAsar: true,
loadBrowserProcessSpecificV8Snapshot: true,
grantFileProtocolExtraPrivileges: undefined,
},
},
})
)