Skip to content

Commit

Permalink
fix: PULL_REQUEST_TEMPLATE is not a binary
Browse files Browse the repository at this point in the history
  • Loading branch information
gnattu committed Dec 19, 2020
1 parent 28abf87 commit 10cbf70
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions patches/app-builder-lib+22.10.3.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
diff --git a/node_modules/app-builder-lib/.DS_Store b/node_modules/app-builder-lib/.DS_Store
new file mode 100644
index 0000000..f9b3028
Binary files /dev/null and b/node_modules/app-builder-lib/.DS_Store differ
diff --git a/node_modules/app-builder-lib/electron-osx-sign/util.js b/node_modules/app-builder-lib/electron-osx-sign/util.js
index 107d8aa..4a6a354 100644
index 107d8aa..1ce14c9 100644
--- a/node_modules/app-builder-lib/electron-osx-sign/util.js
+++ b/node_modules/app-builder-lib/electron-osx-sign/util.js
@@ -202,12 +202,23 @@ module.exports.walkAsync = async function (dirPath) {
@@ -143,6 +143,9 @@ const isBinaryFile = require("isbinaryfile").isBinaryFile;
const getFilePathIfBinaryAsync = module.exports.getFilePathIfBinaryAsync = function (filePath) {
return isBinaryFile(filePath)
.then(function (isBinary) {
+ if (isBinary) {
+ console.log(path.basename(filePath))
+ }
return isBinary ? filePath : undefined
})
}
@@ -202,12 +205,23 @@ module.exports.walkAsync = async function (dirPath) {
const stat = await fs.lstat(filePath)
if (stat.isFile()) {
switch (path.extname(filePath)) {
+ case '': // Binary
+ if (path.basename(filePath)[0] !== '.') {
+ if (path.basename(filePath)[0] !== '.' && path.basename(filePath) != 'PULL_REQUEST_TEMPLATE') {
+ return getFilePathIfBinaryAsync(filePath)
+ } // Else reject hidden file
+ break
Expand Down

0 comments on commit 10cbf70

Please sign in to comment.