-
Notifications
You must be signed in to change notification settings - Fork 404
Add ia32/x64 architectures support #18
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
Conversation
leo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good! Now that it's reviewed, can you add the documentation to readme.md as well?
|
@chabou ping |
| Accepts a platform (like "darwin" or "win32") and an architecture (like "ia32", or "x64") to download the appropriate copy your app for. I generally suggest using either `process.platform()` ([more](https://nodejs.org/api/process.html#process_process_platform)) and `process.arch()` ([more](https://nodejs.org/api/process.html#process_process_arch)) to retrieve these strings. | ||
|
|
||
| If the cache isn't filled yet or doesn't contain a download link for the specified platform, it will respond like `/`. | ||
| If :arch parameter is missing, `x64` is used by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that a 404 is returned if cache isn't filled for this platform. See https://github.com/zeit/hazel/blob/2d54cb913cfd6ceb9ef491285f33ed74a2cd1847/lib/routes.js#L79-L81
|
I rebased this PR against master and add documentation for this feature. |
|
Hey! I'd like to help with 32bit support. @chabou made some commits, but I don't know what this means: How can I help to resolve these conflicts? |
|
Going to close this since it's stale, I think we might still want to support this though 🤔 cc @leo |
Fix #16
This feature is not yet documented in
README.mdbut I'll do that after reviewThis PR adds 2 new routes
/download/:platform/:archand/update/:platform/:arch/:version.archparameter could beia32orx64(same values thanelectron-builder).If
archis omitted,x64is used by default.When fetching/caching packages from Github release, it supposes that package is
x64except if its name, without extension, ends withi386,i686oria32.