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

Usage on Windows / Mac #11

Closed
bamarni opened this issue Jun 3, 2016 · 7 comments
Closed

Usage on Windows / Mac #11

bamarni opened this issue Jun 3, 2016 · 7 comments

Comments

@bamarni
Copy link

bamarni commented Jun 3, 2016

Does this tool work on Windows / Mac? If so, could there be executables available in the releases?

Thanks

@ellotheth
Copy link
Owner

Unfortunately I don't have access to a Mac, so I can't test that one. It didn't even occur to me to try it on Windows, because I've never used a "pipe an installer script into PowerShell" installation method there. I can try it out next weekend (I'm currently traveling in Linux-land).

@ellotheth
Copy link
Owner

(For what it's worth, @dennisdegreef has done some development work with pipethis on a Mac, so you should at least get a passing test suite on that platform!)

@dennisdegreef
Copy link
Contributor

Might be a bit overkill, but TravisCI can build for multiple platforms, including OSX. I could also take a look into integrating pipethis on Homebrew. I have only done this through Homebrew's 'taps'-concept before though.

I'm not too sure about Windows, but I've seen package managers for Windows as well (https://chocolatey.org/). I guess when bash support hits Windows, this should be possible?

I know a project that does build and distribute for multiple platforms, I can look into their build pipeline.
And yes, I did do some development on OSX, works like a charm :)

@bamarni
Copy link
Author

bamarni commented Jun 13, 2016

I'm on Mac too, I wanted to give it a try but couldn't find any example in the doc, do you know any open source tool supporting pipethis?

Anyways thanks for the clarification :)

@bamarni bamarni closed this as completed Jun 13, 2016
@ellotheth
Copy link
Owner

As far as I know, nothing's using pipethis yet. I've been using my personal server for testing, and you're welcome to try a test script to see how the identity verification works:

$ pipethis https://ramblinations.com/signed.detached

You can also run an unsupported script (like the rvm installer, or anything similar) with the --no-verify flag:

$ pipethis --no-verify --inspect https://get.rvm.io

This might be an OSX build. If you get a chance to try it, would you let me know if it works?

@ellotheth ellotheth reopened this Jun 18, 2016
ellotheth added a commit that referenced this issue Jun 18, 2016
@dennisdegreef
Copy link
Contributor

2016/06/18 17:58:55 Signature verified 👍

ellotheth added a commit that referenced this issue Jun 18, 2016
Squashed commit of the following:

commit 1794652
Author: Gemma Lynn <gemma@ramblinations.com>
Date:   Sat Jun 18 11:52:22 2016 -0600

    golang tip doesn't work on darwin

commit a3bee7d
Author: Gemma Lynn <gemma@ramblinations.com>
Date:   Sat Jun 18 11:42:00 2016 -0600

    try using an osx environment instead of cc?

commit 4bc22f2
Author: Gemma Lynn <gemma@ramblinations.com>
Date:   Sat Jun 18 10:38:17 2016 -0600

    don't try to run anything but the build on darwin

commit 6ac564b
Author: Gemma Lynn <gemma@ramblinations.com>
Date:   Sat Jun 18 10:24:31 2016 -0600

    are you kidding me with this, travis-ci/gimme#25

commit a6916b1
Author: Gemma Lynn <gemma@ramblinations.com>
Date:   Sat Jun 18 10:04:20 2016 -0600

    travis can't do windows, heh

    also this business of not vendoring is becoming a problem.

commit 5fd500e
Author: Gemma Lynn <gemma@ramblinations.com>
Date:   Sat Jun 18 09:55:24 2016 -0600

    add osx and windows builds to travis, maybe

    see #11
@ellotheth
Copy link
Owner

Cross-compiling for OSX from Linux is straightforward:

$ GOOS=darwin GOARCH=amd64 make dist

I'll start pushing up OSX builds for future releases. I don't think it's worth baking into the Makefile.

Closing this for now, and we can revisit Windows 10 if/when Bash support hits. (I know people are already building apt implementations, but I'm pretty skeptical that straight shell script installers will Just Work (tm).) Thanks to you both for the research and testing!

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

No branches or pull requests

3 participants