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.

Support absolute paths to updater resources

See original GitHub issue
  • Version:
"electron": "1.7.4",
"electron-builder": "19.13.0",
"electron-updater": "2.4.4",
  • Target: Mac and Windows

In a previous version of the electron-updater, the latest-mac.json file contained a fully qualified path to download the next application version, for example:

{
  "version": "0.1.12",
  "releaseDate": "2017-07-25T17:28:28.808Z",
  "url": "https://desktop-release.notion-static.com/Notion-0.1.12-mac.zip"
}

However the new latest-mac.yml and the old windows latest.yml do not provide a full url:

version: 0.1.12
releaseDate: '2017-07-25T17:28:28.820Z'
githubArtifactName: Notion-0.1.12-mac.zip
path: Notion-0.1.12-mac.zip
sha512: >-
  RlrpWxGYKbPKvs/ja8/J1ZoRJ3T1Xt0G0Ey9S3kh6/rDb1vgG2HbSSHRm9SJ7zIkW96IZB/kl5flxxPr7W/74g==

This is problematic for me because we moved S3 buckets and our new one sits behind cloudflare. The old mac applications were able to update, but the newer mac apps and all the windows apps were not able to make the transition over to the new bucket.

My point is, it would be really nice if we use fully qualified urls 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
liliakaicommented, Oct 9, 2017

Can we also have an option to generate absolute urls in latest.yml? It would be nice to avoid editing yml files between building and publishing.

0reactions
develarcommented, Oct 9, 2017

@liliakai For what? Why your new version is not hosted on the same server where old version?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Question] What is the reason to drop support for absolute ...
My understanding is that some complex platforms that unify different static analyzers can be affected by this change. In most cases such ...
Read more >
How to get absolute path to file in /resources folder of your ...
The proper way that actually works: URL resource = YourClass.class.getResource("abc"); Paths.get(resource.toURI()).toFile();.
Read more >
How to set an absolute path in TypeScript | Towards the Cloud
Absolute file paths can help organize the imports in your TypeScript projects by improving the way import locations are fetched by the ...
Read more >
Classic SysAdmin: Absolute Path vs Relative Path in Linux/Unix
In other words we can say absolute path is a complete path from start of actual filesystem from / directory.
Read more >
File path formats on Windows systems | Microsoft Learn
As result, the first is an absolute path from the root directory of drive C: , whereas the second is a relative path...
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