Skip to content

Instantly share code, notes, and snippets.

@zwetan
Created March 1, 2016 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zwetan/24cf6b023d5451ff52b1 to your computer and use it in GitHub Desktop.
Save zwetan/24cf6b023d5451ff52b1 to your computer and use it in GitHub Desktop.
Redtamarin Prod Install script (Ubuntu 14.04.4 LTS 64-bit)
#!/bin/bash
# _____ _ _ __ __ __
# / ___/__ _______ ___ ____ _(_)___ / |/ /__ / /__ _____ ____/ /__ ___
# / /__/ _ \/ __(_-</ _ `/ _ `/ / __/ / / -_) __/ |/|/ / _ \/ __/ '_/(_-<
# \___/\___/_/ /___/\_,_/\_,_/_/_/ /_/|_/\__/\__/|__,__/\___/_/ /_/\_\/___/
# ---------------------------------------------------------------------------
# date: 2016-02-26
# desc: Make a full redtamarin install
# deps: Ubuntu 14.04.4 LTS
# note: this script need to be run as root
# Download as3shebang
wget https://github.com/Corsaair/as3shebang/releases/download/1.0.0/as3shebang_1.0.0_amd64.deb
# Install as3shebang
dpkg -i as3shebang_1.0.0_amd64.deb
# Download redtamarin-sdk
wget https://github.com/Corsaair/redtamarin/releases/download/0.4.1/redtamarin-sdk_0.4.1-1_amd64.deb
# Install redtamarin-sdk
dpkg -i redtamarin-sdk_0.4.1-1_amd64.deb
# Install binfmt-support
apt-get -y install binfmt-support
# Install Java (needed to compile with asc.jar)
apt-get -y install default-jdk
# Download bimfmt_misc support scripts
wget https://raw.githubusercontent.com/corsaair/redtamarin/master/extras/linux/install-as3run
wget https://raw.githubusercontent.com/corsaair/redtamarin/master/extras/linux/select-as3run
wget https://raw.githubusercontent.com/corsaair/redtamarin/master/extras/linux/install-abcrun
wget https://raw.githubusercontent.com/corsaair/redtamarin/master/extras/linux/select-abcrun
wget https://raw.githubusercontent.com/corsaair/redtamarin/master/extras/linux/install-swfrun
wget https://raw.githubusercontent.com/corsaair/redtamarin/master/extras/linux/select-swfrun
# Make executable
chmod +x install-as3run
chmod +x select-as3run
chmod +x install-abcrun
chmod +x select-abcrun
chmod +x install-swfrun
chmod +x select-swfrun
# Install .as3 .abc .swf extensions
./install-as3run
./install-abcrun
./install-swfrun
# move files to Redtamarin directory
mv install-* /usr/lib/redtamarin/run/
mv select-* /usr/lib/redtamarin/run/
# Create symlink
ln -s /usr/lib/redtamarin/run/select-as3run /usr/bin/select-as3run
ln -s /usr/lib/redtamarin/run/select-abcrun /usr/bin/select-abcrun
ln -s /usr/lib/redtamarin/run/select-swfrun /usr/bin/select-swfrun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment