Skip to content

Commit

Permalink
Windows debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Sundin committed Dec 9, 2020
1 parent d4e06a0 commit a160e76
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion config.forge.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,23 @@ module.exports = {
hooks: {
postMake: async (config, results) => {
results.forEach(result => {
const artifactPath = result.artifacts[0];
let artifactPath = result.artifacts[0];


// list all files in the directory
fs.readdir(artifactPath, (err, files) => {
if (err) {
throw err;
}

console.log("Now listing contents of artifact path");
// files object contains all files names
// log them on console
files.forEach(file => {
console.log(file);
});
});

console.log(`Artifact for ${result.arch}/${result.platform} packaged to: ${artifactPath}`);
if (artifactPath.includes("squirrel.windows")) {
artifactPath = artifactPath + path.sep + "github-pr-tool.exe";
Expand Down

0 comments on commit a160e76

Please sign in to comment.