fix(electron): 打包工具白名单支持 app-builder-lib 26.18.0

This commit is contained in:
kuaifan 2026-10-28 17:38:26 +00:00
parent 775ad00cca
commit 1c0228f7e0

View File

@ -13,7 +13,7 @@ const replacements = [
];
function patchSource(source, version) {
if (!['26.8.1', '26.15.3'].includes(version)) {
if (!['26.8.1', '26.15.3', '26.18.0'].includes(version)) {
throw new Error(`Unsupported app-builder-lib ${version}; review the macOS keychain workaround before building.`);
}
const count = (text) => source.split(text).length - 1;