mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 22:25:36 +00:00
Use the code signing Subject Name as basis for Tray GUID on Windows (#32939)
* Use the code signing Subject Name as basis for Tray GUID on Windows Fixes https://github.com/element-hq/element-web/issues/32907 * Delint * Iterate * Add missing imports
This commit is contained in:
committed by
GitHub
parent
e640948fc8
commit
9ea4079c3b
@@ -1,7 +1,7 @@
|
||||
import * as os from "node:os";
|
||||
import * as fs from "node:fs";
|
||||
import * as path from "node:path";
|
||||
import { type Configuration as BaseConfiguration, type Protocol } from "electron-builder";
|
||||
import { type Configuration as BaseConfiguration } from "electron-builder";
|
||||
|
||||
/**
|
||||
* This script has different outputs depending on your os platform.
|
||||
@@ -38,6 +38,7 @@ interface Metadata {
|
||||
interface ExtraMetadata extends Metadata {
|
||||
electron_appId: string;
|
||||
electron_protocol: string;
|
||||
electron_windows_cert_sn?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -208,6 +209,7 @@ if (variant["linux.deb.name"]) {
|
||||
if (process.env.ED_SIGNTOOL_SUBJECT_NAME && process.env.ED_SIGNTOOL_THUMBPRINT) {
|
||||
config.win.signtoolOptions!.certificateSubjectName = process.env.ED_SIGNTOOL_SUBJECT_NAME;
|
||||
config.win.signtoolOptions!.certificateSha1 = process.env.ED_SIGNTOOL_THUMBPRINT;
|
||||
config.extraMetadata.electron_windows_cert_sn = config.win.signtoolOptions!.certificateSubjectName;
|
||||
}
|
||||
|
||||
if (os.platform() === "linux") {
|
||||
|
||||
Reference in New Issue
Block a user