try different workaround

pull/1755/head
Mikael Finstad 2023-10-20 15:58:40 +08:00
rodzic 6d2cac9a68
commit 45e876788a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 25AB36E3E81CBC26
1 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -1,12 +1,13 @@
diff --git a/out/macPackager.js b/out/macPackager.js
index 30787ba358acb9277a63df05c839a0caeea8ad91..a7d2189924ec4108e07112d51f4eadd181b89b89 100644
index 30787ba358acb9277a63df05c839a0caeea8ad91..aa131c6397d274486117f7693d409729ba4d3ca1 100644
--- a/out/macPackager.js
+++ b/out/macPackager.js
@@ -402,6 +402,7 @@ class MacPackager extends platformPackager_1.PlatformPackager {
@@ -276,7 +276,7 @@ class MacPackager extends platformPackager_1.PlatformPackager {
await this.doFlat(appPath, artifactPath, masInstallerIdentity, keychainFile);
await this.dispatchArtifactCreated(artifactPath, null, builder_util_1.Arch.x64, this.computeSafeArtifactName(artifactName, "pkg", arch, true, this.platformSpecificBuildOptions.defaultArch));
}
- await this.notarizeIfProvided(appPath);
+ if (!isMas) await this.notarizeIfProvided(appPath);
return true;
}
async notarizeIfProvided(appPath) {
+ if (this.platform.nodeName !== 'darwin') return;
const notarizeOptions = this.platformSpecificBuildOptions.notarize;
if (notarizeOptions === false) {
builder_util_1.log.info({ reason: "`notarizeOptions` is explicitly set to false" }, "skipped macOS notarization");
async getOptionsForFile(appPath, isMas, customSignOptions) {