Skip to content

Commit

Permalink
move get path
Browse files Browse the repository at this point in the history
  • Loading branch information
Zinoka committed Sep 19, 2024
1 parent 2777305 commit caaa3e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,16 @@ module.exports = {
],
hooks: {
postPackage: async (forgeConfig, options) => {
const outputPath = options.outputPaths[0];

console.log("Output Path:", outputPath);

if (options.arch === "x64") {
const outputPath = options.outputPaths[0];
const newPath = path.join(
path.dirname(outputPath),
"SilverStock_x64.dmg"
);
fs.renameSync(outputPath, newPath);
console.log(`Renamed DMG for x64: ${newPath}`);
} else if (options.arch === "arm64") {
const outputPath = options.outputPaths[0];
const newPath = path.join(
path.dirname(outputPath),
"SilverStock_arm64.dmg"
Expand Down

0 comments on commit caaa3e0

Please sign in to comment.