@electron__osx-sign@1.3.3.patch 1.4 KB

1234567891011121314151617181920212223242526
  1. diff --git a/dist/cjs/util.js b/dist/cjs/util.js
  2. index 77e64b56872bc65bcb0f60ecfbec84eb3da02c6f..8d5b81eea636c3f1672cfe2c66602078bda1e847 100644
  3. --- a/dist/cjs/util.js
  4. +++ b/dist/cjs/util.js
  5. @@ -153,7 +153,7 @@ async function walkAsync(dirPath) {
  6. const children = await fs.readdir(dirPath);
  7. return await Promise.all(children.map(async (child) => {
  8. const filePath = path.resolve(dirPath, child);
  9. - const stat = await fs.stat(filePath);
  10. + const stat = await fs.lstat(filePath);
  11. if (stat.isFile()) {
  12. switch (path.extname(filePath)) {
  13. case '.cstemp': // Temporary file generated from past codesign
  14. diff --git a/dist/esm/util.js b/dist/esm/util.js
  15. index d3f66d54b1a88e7410d78affe17de87302db02a3..e86b066d1d21628908ecc848f5bb29a7598605a7 100644
  16. --- a/dist/esm/util.js
  17. +++ b/dist/esm/util.js
  18. @@ -117,7 +117,7 @@ export async function walkAsync(dirPath) {
  19. const children = await fs.readdir(dirPath);
  20. return await Promise.all(children.map(async (child) => {
  21. const filePath = path.resolve(dirPath, child);
  22. - const stat = await fs.stat(filePath);
  23. + const stat = await fs.lstat(filePath);
  24. if (stat.isFile()) {
  25. switch (path.extname(filePath)) {
  26. case '.cstemp': // Temporary file generated from past codesign