Skip to content

Commit

Permalink
Remove element-builder specific scripts (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Mar 29, 2023
1 parent 762881b commit 40058d3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 124 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,12 @@
"win": {
"target": [
"squirrel"
],
"sign": "scripts/electron_winSign"
]
},
"directories": {
"output": "dist"
},
"afterPack": "scripts/electron_afterPack",
"afterSign": "scripts/electron_afterSign",
"protocols": [
{
"name": "element",
Expand Down
40 changes: 0 additions & 40 deletions scripts/electron_afterSign.js

This file was deleted.

78 changes: 0 additions & 78 deletions scripts/electron_winSign.js

This file was deleted.

4 changes: 1 addition & 3 deletions scripts/generate-builder-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Prefixes the nightly version with `0.0.1-nightly.` as it breaks if it is not semver
*
* On macOS:
* Passes --notarytool-team-id to build.mac.notarize.notarize if specified and removes build.mac.afterSign
* Passes --notarytool-team-id to build.mac.notarize.notarize if specified
*
* On Linux:
* Replaces spaces in the product name with dashes as spaces in paths can cause issues
Expand Down Expand Up @@ -87,14 +87,12 @@ async function main(): Promise<number | void> {
}

if (argv["signtool-thumbprint"] && argv["signtool-subject-name"]) {
delete cfg.win!.sign;
cfg.win!.signingHashAlgorithms = ["sha256"];
cfg.win!.certificateSubjectName = argv["signtool-subject-name"];
cfg.win!.certificateSha1 = argv["signtool-thumbprint"];
}

if (argv["notarytool-team-id"]) {
delete cfg.afterSign;
cfg.mac!.notarize = {
teamId: argv["notarytool-team-id"],
};
Expand Down

0 comments on commit 40058d3

Please sign in to comment.