Skip to content

Instantly share code, notes, and snippets.

@artbear
Forked from EvilBeaver/install-oscript.sh
Last active October 18, 2020 12:40
Show Gist options
  • Save artbear/eded9f462abdfee52262f98fa7583c23 to your computer and use it in GitHub Desktop.
Save artbear/eded9f462abdfee52262f98fa7583c23 to your computer and use it in GitHub Desktop.
Правильная установка 1script на linux
#!/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
wget http://oscript.io/downloads/night-build/deb
sudo dpkg -i deb
# unzip -o latest.zip -d osc-engine
# rm latest.zip
rm deb
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 install -f
# 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"
which oscript
oscript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment