Skip to content

Commit

Permalink
Changes necessary to make Windows build work
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Feb 20, 2020
1 parent 011e31b commit 148aede
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patches/* binary
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@
"node_modules/sharp"
],
"artifactName": "${name}-win-${version}.${ext}",
"certificateSubjectName": "Signal",
"certificateSubjectName": "Signal (Quiet Riddle Ventures, LLC)",
"certificateSha1": "77B2AA4421E5F377454B8B91E573746592D1543D",
"publisherName": "Signal (Quiet Riddle Ventures, LLC)",
"icon": "build/icons/win/icon.ico",
"publish": [
Expand Down
8 changes: 4 additions & 4 deletions patches/typo-js+1.1.0.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
diff --git a/node_modules/typo-js/typo.js b/node_modules/typo-js/typo.js
index 68c285b..11710a1 100644
index 68c285b..95ebc6c 100644
--- a/node_modules/typo-js/typo.js
+++ b/node_modules/typo-js/typo.js
@@ -431,7 +431,7 @@ Typo.prototype = {
dictionaryTable[word] = null;
}

- if (rules.length > 0) {
+ if (rules && rules.length > 0) {
if (dictionaryTable[word] === null) {
Expand All @@ -15,7 +15,7 @@ index 68c285b..11710a1 100644
else if (this.flags.FLAG === "num") {
return textCodes.split(",");
}
+ return [];
+ return [];
},

/**

0 comments on commit 148aede

Please sign in to comment.