adamralph / bau

The C# task runner
MIT License
152 stars 17 forks source link

Prerequisites / cross platform compatibility #183

Closed keichinger closed 9 years ago

keichinger commented 10 years ago

Hey,

when trying to install bau (or rather scriptcs) on an Linux or OSX machine you'll most likely run into some compatibility issues because some system packages are simply missing.

Let's say I'm executing bau.sh on my OSX 10.10 machine it'll error out because:

While it's rather safe to assume that wget is installed on Linux it is much safer to use curl to download the scriptcs NuGet package.

So line 17 of bau.sh should look like this:

curl -O "https://github.com/bau-build/bau-blob/raw/master/scriptcs-0.10.0-alpha.140530.nupkg"

This is one problem fixed. The next problem is a bit more tricky as unzip isn't pre-installed on any popular distribution as far as I'm aware of. One simply can't execute apt-get install unzip as that doesn't work on OSX. On OSX you'd need to use homebrew (http://brew.sh/):

Now, I'm wondering what you wanna do:

Cheers

adamralph commented 10 years ago

Interesting information, thanks! I thought I tested bau.sh on my girlfriend's Mac but perhaps not :wink:.

Ultimately all that stuff in bau.sh is just a workaround for not having an easy install story for scriptcs on OSX and Linux, but that is changing with SVM - https://github.com/paulbouwer/scriptcs-svm. I think in the meantime some documentation will be enough. The .travis.yml file can still do the funky download and unzip to get things building over there but bau.sh can boil down to something as simple as https://github.com/bau-build/bau/blob/dev/bau.bat.

eatdrinksleepcode commented 9 years ago

What is the status of this? I am trying to get started on a Mac and I'm not sure how or if I can do a build.

eatdrinksleepcode commented 9 years ago

For reference I was able to complete a successful build by changing the current wget line in bau.sh to

curl -L -o ScriptCs.0.13.3.nupkg "https://chocolatey.org/api/v2/package/ScriptCs/0.13.3/"

Apparently I already had unzip installed.

adamralph commented 9 years ago

Now that scriptcs has a reasonable installation path on both Mac and OSX, I think we can just get rid of this scriptcs.exe bootstrapping altogether from bau.sh and change the build instructions to state that scriptcs should be installed as a pre-requisite.

scriptcs can be installed on Mac via homebrew or on both Mac or Linux via svm (https://github.com/scriptcs-contrib/svm/wiki/Installing-svm).

adamralph commented 9 years ago

@cH40z-Lord @eatdrinksleepcode please see the latest build instructions https://github.com/bau-build/bau/blob/dev/how_to_build.md

keichinger commented 9 years ago

@adamralph looks good! Thanks for taking care of it.