Last active
March 5, 2024 11:59
-
-
Save EvilBeaver/fee28f5a18ccc66855c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
unzip -o latest.zip -d osc-engine | |
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