dogi / ole--vagrant-community

0 stars 19 forks source link

research into how do installation process with a one liner #29

Open dogi opened 7 years ago

dogi commented 7 years ago

Analog to the way brew is handling the installation of the a package manager for open source software,

brew

we would like to do the same thing with our install scripts

do research into how a one liner would look like which first downloads an install script and then executes it:

dogi commented 7 years ago

macosx

/usr/bin/bash -e "$(curl -fsSL https://raw.githubusercontent.com/dogi/ole--vagrant-community/master/macosx/install.sh)"
dogi commented 7 years ago

ubuntu

/usr/bin/bash -e "$(curl -fsSL https://raw.githubusercontent.com/dogi/ole--vagrant-community/master/ubuntu/install.sh)"
FanisGk commented 7 years ago

This works for me: (I created a simple script (install.bat) just to test the command)

powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/FanisGk/ole--vagrant-community/master/windows/install.bat', 'install.bat')" && start install.bat
aberdean commented 7 years ago

This is the one liner to start install.ps1:

@powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/dogi/ole--vagrant-community/master/windows/install.ps1', 'install.ps1')" && @powershell -NoProfile -ExecutionPolicy Bypass -Command ".\install.ps1"
lmmrssa commented 7 years ago

virtualization off

Thanks