Skip to content

Instantly share code, notes, and snippets.

@240596448
Forked from artbear/install-oscript.sh
Last active December 14, 2023 11:29
Show Gist options
  • Save 240596448/8454cd247a9c4ef22c68145d8e4e8270 to your computer and use it in GitHub Desktop.
Save 240596448/8454cd247a9c4ef22c68145d8e4e8270 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 oscript'
oscriptdeb="oscript-latest.deb"
wget http://oscript.io/downloads/latest/x64/deb -O $oscriptdeb
sudo dpkg -i $oscriptdeb
rm $oscriptdeb
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