Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Support for downloading for a platform other than the host platform. #7

Closed
wants to merge 1 commit into from

Conversation

entropi
Copy link

@entropi entropi commented May 16, 2014

This resolves #4 by allowing you to specify an alternate platform to download. For backwards compatibility it still places the downloaded shell in the main outputDir by default, but also adds an option to have it append the platform name to the path (e.g., binaries/darwin/) automatically.

@probablycorey
Copy link
Contributor

Sorry for the delay in responding! This looks good @entropi, I'm going to test it out next week and try to get it merged.

@probablycorey
Copy link
Contributor

Could you merge or rebase this with master. There was an arch option added that conflicts with this PR.

@@ -24,6 +24,8 @@ grunt.loadNpmTasks('grunt-download-atom-shell');
* `symbols` - Download debugging symbols instead of binaries, default to `false`.
* `rebuild` - Whether to rebuild native modules after atom-shell is downloaded.
* `apm` - The path to apm.
* `platform` - What platform to download (`win32`, `darwin`, `linux`). default is the host platform.
* `addPlatformToOutputPath` - Whether to put the downloaded atom-shell in a platform specific directory within outputDir. (e.g., outputDir/darwin/) Defaults to `false` for backwards compatibility.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove the addPlatformToOutputPath option and assume that it is false. It would still work with Atom because it sets atomShellDownloadDir = path.join(os.tmpdir(), 'atom-cached-atom-shells').

@probablycorey
Copy link
Contributor

I'm going to close this PR. Please leave a comment or create another PR if you get a chance to fix the issues I mentioned.

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

Successfully merging this pull request may close these issues.

Cross-platform downloads
2 participants