Skip to content

Instantly share code, notes, and snippets.

@WillSams
Last active January 28, 2019 17:27
Show Gist options
  • Save WillSams/f40d650f664a7837fd15 to your computer and use it in GitHub Desktop.
Save WillSams/f40d650f664a7837fd15 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "************** Getting HockeyIntelliGym to work on Debian ***************"
echo "You may be prompted for root credentials to complete the install."
echo "Adapted from details from http://jcward.com/Installing+AIR+Apps+On+Linux."
echo "This script assumes you've already paid & downloaded HockeyIntelliGym"
echo "Your HockeyIntelliGym file should be sitting in your HOME path:"
echo " $HOME/install_air_app HockeyIntelliGym.air"
echo "*************************************************************************"
__ScriptVersion="2015.12.08-Debian"
__ScriptName="install_hockey_intelligym.sh"
__ScriptFullName="$0"
sudo bash -c "add-apt-repository ppa:ubuntu-wine/ppa -y"
sudo bash -c "apt update && apt upgrade -y"
sudo bash -c "apt install wine1.7 winetricks"
winetricks wininet
#disable cluttering FIXME messages (not a necessary step)
echo 'export WINEDEBUG=fixme-all' >> $HOME/.bashrc
source $HOME/.bashrc
#Download the Adobe AIR installer from Adobe. Since Linux is unsupported now, you'll have to download
# the Windows version https://get.adobe.com/air/otherversions/ and download the Windows version
wget https://get.adobe.com/air/download/?installer=Adobe_AIR_20.0_for_Win32&standalone=1
wine AdobeAIRInstaller.exe #Install your downloaded installer using Wine
#Setup install script for AIR apps.
sudo bash -c "echo 'find $HOME/.wine -name \"airappinstaller.exe\" | head -n 1 | xargs -I % wine \"%\" `winepath -w $1`' >> /usr/local/bin/install_air_app"
$HOME/install_air_app HockeyIntelliGym.air
sudo bash -c "apt autoremove -y && apt clean"
echo "$__ScriptFullName ($__ScriptVersion) complete."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment