Skip to content

Instantly share code, notes, and snippets.

@artbear
Created April 20, 2016 12:49
Show Gist options
  • Save artbear/4cb5e1183eaeb827616426c237d1eab8 to your computer and use it in GitHub Desktop.
Save artbear/4cb5e1183eaeb827616426c237d1eab8 to your computer and use it in GitHub Desktop.
#!/bin/sh
# simple installer for Ubuntu 14.04 https://bitbucket.org/EvilBeaver/1script/wiki/Home
echo 'Starting wgeter latest develops'
wget --continue http://oscript.io/downloads/night-build/latest.zip
mkdir -p ./osc-engine/bin
mkdir -p ./osc-engine/lib
unzip -o latest.zip -d osc-engine/bin
rm latest.zip
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo su -c 'echo "deb http://download.mono-project.com/repo/debian wheezy main" > /etc/apt/sources.list.d/mono-xamarin.list'
sudo apt-get update
sudo apt-get -y install mono-complete
sudo rsync -r ./osc-engine /usr/lib
INTERPRETATOR='#!/bin/sh\n/usr/bin/mono /usr/lib/osc-engine/bin/oscript.exe "$@"'
echo "$INTERPRETATOR" > ./oscript.sh
chmod +x ./oscript.sh
sudo su -c 'rsync ./oscript.sh /usr/bin/'
rm ./oscript.sh
echo "Installation complete"
where oscript.sh
oscript.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment