question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

publish windows ia32,x64 to github fail

See original GitHub issue
  • [✔️] I have read the contribution documentation for this project.
  • [✔️] I agree to follow the code of conduct that this project follows, as appropriate.
  • [✔️] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:

make and publish windows ia32,x64, the same name as exe is generated.
demo1-1.0.0.Setup.exe
demo1-1.0.0-full.nupkg
so publish to github fail

Console output when you run electron-forge with the environment variable DEBUG=electron-forge:*. (Instructions on how to do so here). Please include the stack trace if one exists.

none

Put the console output here

An unhandled rejection has occurred inside Forge:
{"message":"Validation Failed","request_id":"C309:4D44:5E47BB:615029:5B743E8C","documentation_url":"https://developer.github.
com/v3","errors":[{"resource":"ReleaseAsset","code":"already_exists","field":"name"}]}
HttpError: {"message":"Validation Failed","request_id":"C309:4D44:5E47BB:615029:5B743E8C","documentation_url":"https://develo
per.github.com/v3","errors":[{"resource":"ReleaseAsset","code":"already_exists","field":"name"}]}
    at response.text.then.message (E:\github\demo1\node_modules\@octokit\rest\lib\request\request.js:72:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! demo1@1.0.1 publish:win64: `electron-forge publish --arch=x64 --platform=win32`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the demo1@1.0.1 publish:win64 script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

What command line arguments are you passing?

electron-forge publish --arch=ia32,x64 --platform=win32

What does your config.forge data in package.json look like?

    "start": "electron-forge start",
    "package": "electron-forge package",
    "package:win": "electron-forge package --arch=ia32,x64 --platform=win32",
    "make": "electron-forge make",
    "make:win": "electron-forge make --arch=ia32,x64 --platform=win32",
    "publish": "electron-forge publish",
    "publish:win": "electron-forge publish --arch=ia32,x64 --platform=win32"

Please provide either a failing minimal testcase (with a link to the code) or detailed steps to reproduce your problem. Using electron-forge init is a good starting point, if that is not the source of your problem.

npm start publish:win

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
maleptcommented, Aug 18, 2018

forge.config.js is basically a node module that contains your configuration. So you would put in your package.json:

{
  // The rest of your package.json file
  "config": {
    "forge": "./forge.config.js"
  }
}

And in forge.config.js:

module.exports = {
  // All of the configuration options that would be in config.forge if you used the package.json method
  postMake: function (forgeConfig, outputs) {
    // outputs are the paths to files that are generated by make, like Squirrel's .exe & RELEASES
    // adapt the atom code here and return outputs
  }
};


1reaction
maleptcommented, Aug 21, 2018

Sorry, I misread how these hooks are supposed to be defined. I meant that it should be in forge.config.hooks.postMake, and that it should return a Promise:

module.exports = {
  // All of the configuration options that would be in config.forge if you used the package.json method
  hooks: {
    postMake: function (forgeConfig, outputs) {
      // outputs are the paths to files that are generated by make, like Squirrel's .exe & RELEASES
      // adapt the atom code here and return outputs
      return Promise.resolve(modified_outputs);
    }
  }
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

publish windows ia32,x64 to github fail · Issue #552 · electron ...
make and publish windows ia32,x64, the same name as exe is generated. demo1-1.0.0.Setup.exe demo1-1.0.0-full.nupkg so publish to github fail.
Read more >
Github "Failed to publish this branch" error on windows
In Windows, right click on your repository --> click on open a shell here. You will see a command prompt. type git push...
Read more >
Create a publish app GitHub workflow - Microsoft Learn
In this quickstart, you will learn how to create a GitHub workflow to publish your .NET source code.
Read more >
Build and publish Visual Studio extensions with GitHub Actions
This blog post is brought to you by elmah.io. elmah.io is error logging, uptime monitoring, deployment tracking, and service heartbeats for your ...
Read more >
Error: failed to push some refs to – How to Fix in Git
When collaborating with other developers using Git, you might encounter the error: failed to push some refs to [remote repo] error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found