-
-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(maker-dmg): Prevent conflict between parallel makers #3519 #3741
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should mirror the other makers and do {makeDir}/{makerName}/{platform}/{arch}/{file}
E.g. MakerZIP https://github.com/electron/forge/blob/main/packages/maker/zip/src/MakerZIP.ts#L42
@@ -17,15 +17,15 @@ export default class MakerDMG extends MakerBase<MakerDMGConfig> { | |||
|
|||
async make({ dir, makeDir, appName, packageJSON, targetArch }: MakerOptions): Promise<string[]> { | |||
const { createDMG } = require('electron-installer-dmg'); | |||
|
|||
const outPath = path.resolve(makeDir, `${this.config.name || appName}.dmg`); | |||
const dmgName = `${this.config.name || appName}_${targetArch}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this mean that all DMGs will have the arch suffix going forward?
- I'd much prefer my DMGs not to have that extension.
- I assume it would be a breaking change for some people. The way my update server is written, it would break if the DMG name suddenly changes.
IMO it should be configurable whether to have the arch in the file name (if it's even an option at all).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, i will provide a option to enable or not
I think I like @MarshallOfSound's approach here but I guess that would be a breaking change for users. Down to merge this when we bump our packages up to Node 22 and have a Forge 8 release. |
Summarize your changes: