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

How to build on windows platform with autoUpdates. #1013

Closed
Johnz86 opened this issue Dec 15, 2016 · 7 comments
Closed

How to build on windows platform with autoUpdates. #1013

Johnz86 opened this issue Dec 15, 2016 · 7 comments

Comments

@Johnz86
Copy link

Johnz86 commented Dec 15, 2016

  • Version: "electron-builder": "^10.8.0"
  • Target: windows platform and msi package.

This is my build profile.

  "build": {
    "appId": "com.siemens.skboffline",
    "squirrelWindows": {
      "remoteReleases": "http://localhost:9000/dist/version/",
      "msi": true
    },
    "win": {
      "certificateFile": "./certs/my_signing_key.pfx",
      "certificatePassword": ""
    }
  },

The msi packages are not build. There are no RELEASES files and nuGet packages compared with older versions. I read outdated tutorials like https://blog.avocode.com/blog/get-that-damn-windows-auto-update-working-on-electron.

Is there some reasonable example for windows build and update with current electron-builder?
How can I build msi package?

@develar
Copy link
Member

develar commented Dec 15, 2016

NSIS is the default target now. Please see https://github.com/electron-userland/electron-builder/releases/tag/v8.0.0

MSI — please see #723

@Johnz86
Copy link
Author

Johnz86 commented Dec 15, 2016

Is there some description how the update with NSIS should work on server side? With squirrel I could just specify setFeedUrl and return a RELEASES file.

In your response the release note specifies that I should not setFeed on Windows and it should produce some app-update.yaml file. I do not see any such file. Is that because I have not specified any .build.publish information?

@develar
Copy link
Member

develar commented Dec 21, 2016

any .build.publish information?

Yes. Please set to generic.

Is there some description how the update with NSIS should work on server side?

ArekSredzki/electron-release-server#87 (comment)

@Daymannovaes
Copy link

Hey @develar how auto-updater works with NSIS, it isn't using Squirrel anymore? I found the docs a little confusing. I'll still need to implement the backend using Nuts, for example, as mentioned in the README?

Thanks!

@Daymannovaes
Copy link

Sorry, just found the answer here: #529

The docs is a bit outdatted, wouldn't be good to update it?

@develar
Copy link
Member

develar commented Dec 22, 2016

wouldn't be good to update it?

@Daymannovaes Do you mean project readme? Please see https://github.com/electron-userland/electron-builder/wiki/Auto-Update

@Daymannovaes
Copy link

Daymannovaes commented Dec 22, 2016

Yes, the project readme, because there says You also need to deploy your releases to a server. Consider using Nuts (uses GitHub as a backend to store the assets), Electron Release Server or Squirrel Updates Server. which can lead to confusion. When I read first time I ask myself "so should I or shouldn't I implement the server with Squirrel?

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

No branches or pull requests

3 participants