Skip to content
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

electron-forge 6 #1279

Merged
merged 3 commits into from Nov 5, 2022
Merged

electron-forge 6 #1279

merged 3 commits into from Nov 5, 2022

Conversation

bendemboski
Copy link
Member

No description provided.

It's finally out of beta!!!
let zipMaker = makers.find((m) => m.name === '@electron-forge/maker-zip');
delete zipMaker.platforms;
writeJsonSync(packageJsonPath, packageJson);
it.only('makes', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bendemboski do we mean to be only running this one test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack! Good catch!

The forge template we use in our blueprint needed to be updated because:
* The template API changed so instead of just executing code from `initializeTemplate()` we need to return a list of tasks that execute the code
* The base template now generates a `forge.config.js` rather than putting the configuration inline in `package.json`
@RobbieTheWagner RobbieTheWagner changed the title Forge 6 electron-forge 6 Nov 5, 2022
@bendemboski
Copy link
Member Author

@rwwagner90 I actually don't think this is breaking...the only thing that looks to me like it has the potential to be breaking is the forge config...but I'm pretty sure it isn't. Previously you would either:

  1. Have the config defined inline in your package.json under the forge.config key
  2. Have the config in a .js file and in package.json, have the config.forge key contain a path to it

In either case, forge will still find the config. The only difference is that now with new forge, if you don't have a forge.config key, it will default to using forge.config.js. But previously if you didn't have a forge.config key in package.json, it just wouldn't work at all. So I think all upgrade paths here work.

@RobbieTheWagner
Copy link
Member

@bendemboski Ah, the docs were confusing then. It looked like the changes you made indicated a config file was required instead of configuring in package.json.

@bendemboski
Copy link
Member Author

Yeah, it's confusing for sure 😆 But the documentation changes are all related to the blueprint/upgrading from 2.x instructions, which don't affect existing 3.x apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants