Skip to content

Commit

Permalink
Catch ENOENT error
Browse files Browse the repository at this point in the history
  • Loading branch information
cipi1965 committed Jan 31, 2025
1 parent 71a9272 commit 9a368b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ const config: ForgeConfig = {
packageAfterPrune: async (config, buildPath, electronVersion, platform) => {
if (platform !== 'win32') {
const binsPath = 'node_modules/grandiose/build/node_gyp_bins/python3'
fs.unlinkSync(path.join(buildPath, binsPath));
try {
fs.unlinkSync(path.join(buildPath, binsPath));
} catch (e) {
console.log("Nothing to delete");
}
}
},
postMake: async (forgeConfig, results) => {
Expand Down

0 comments on commit 9a368b5

Please sign in to comment.