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 does not work with generic provider

See original GitHub issue
  • Electron-Builder Version: 22.14.5
  • Node Version: v14.15.1
  • Electron Version: 11.0.1
  • Electron Type (current, beta, nightly):
  • Target: NSIS Winx64

When provider is set to generic and following macro is invoked electron-builder build --win --x64 --publish always electron builder does not emit any request to the web server

Provider looks to be configured correctly, since app is trying to get updates from the server when launched:

"publish": [
      {
        "provider": "generic",
        "url": "http://127.0.0.1:8000/api/apps/My First App"
      }
    ],

[13/Dec/2021 10:46:37] "GET /api/apps/My%20First%20App/beta.yml?noCache=1fmpivgae HTTP/1.1" 200 448

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
grumpygarycommented, Jul 4, 2022

Looking at the source code seems publish functionality for generic provider is not implemented at all 😦

...
/** @internal */
  scheduleUpload(publishConfig: PublishConfiguration, event: UploadTask, appInfo: AppInfo): void {
    if (publishConfig.provider === "generic") {
      return
    }

    const publisher = this.getOrCreatePublisher(publishConfig, appInfo)
...

This should be correct, as it is up to the developer to upload the dist files manually.

0reactions
mmaiettacommented, Jul 5, 2022

Okay, sounds good.

I tested with the electron-quick-start-typescript project

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where Do I Specify the URL for Generic Publish Option in ...
Delvar gave me the answer in the comment: {"provider": "generic", "url": "your URL"}.
Read more >
Publish a generic object ‒ Qlik Sense for developers
Publish a generic object that belongs to a published app, by using the Publish method. The target of the request is the handle...
Read more >
GitLab Generic Packages Repository
Publish generic files, like release binaries, in your project's Package Registry. Then, install the packages whenever you need to use them as a...
Read more >
Generic Lists
Purpose. Generic Lists are a feature allowing easy creation and management of lists of title/value pairs. How to Use. Accessing the Generic List...
Read more >
Generic Packages Repository - Docs
To publish a generic package perform a HTTP PUT operation with the package content in the request body. You cannot publish a file...
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