We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4e06a0 commit a160e76Copy full SHA for a160e76
1 file changed
config.forge.js
@@ -24,7 +24,23 @@ module.exports = {
24
hooks: {
25
postMake: async (config, results) => {
26
results.forEach(result => {
27
- const artifactPath = result.artifacts[0];
+ let artifactPath = result.artifacts[0];
28
+
29
30
+ // list all files in the directory
31
+ fs.readdir(artifactPath, (err, files) => {
32
+ if (err) {
33
+ throw err;
34
+ }
35
36
+ console.log("Now listing contents of artifact path");
37
+ // files object contains all files names
38
+ // log them on console
39
+ files.forEach(file => {
40
+ console.log(file);
41
+ });
42
43
44
console.log(`Artifact for ${result.arch}/${result.platform} packaged to: ${artifactPath}`);
45
if (artifactPath.includes("squirrel.windows")) {
46
artifactPath = artifactPath + path.sep + "github-pr-tool.exe";
0 commit comments