Skip to content

Instantly share code, notes, and snippets.

Created March 15, 2018 10:21
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 anonymous/20afe7ef8353fe2de4f4a723cb125e06 to your computer and use it in GitHub Desktop.
Save anonymous/20afe7ef8353fe2de4f4a723cb125e06 to your computer and use it in GitHub Desktop.
mkdir -p fafclient-x86_64.AppImage/fafclient.AppDir
cd fafclient-x86_64.AppImage/
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
cd fafclient.AppDir
HERE=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
bash ../Miniconda3-latest-Linux-x86_64.sh -b -p ./conda
rm ../Miniconda3-latest-Linux-x86_64.sh
PATH="${HERE}"/conda/bin:$PATH
conda create -n fafclient python=3.6 -y
source activate fafclient
pip install pyqt5 semantic-version jsonschema ipaddress
wget https://github.com/FAForever/uid/releases/download/v4.0.5/faf-uid -O "${HERE}"/conda/bin/faf-uid
chmod +x "${HERE}"/conda/bin/faf-uid
rm -rf "${HERE}"/conda/pkgs
rm -rf "${HERE}"/client/.git
git clone https://github.com/FAForever/client.git
cd client
git checkout `git describe --tags --abbrev=0`
echo `git describe --tags --abbrev=0` > "./res/RELEASE-VERSION"
cd ..
cd ..
cp ./fafclient.AppDir/client/res/window_icon.png ./faficon.png
cat > ./AppRun <<\EOF
#!/bin/sh
HERE=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
export PATH="${HERE}"/fafclient.AppDir/conda/bin:$PATH
source activate fafclient
python "${HERE}"/fafclient.AppDir/client/src
EOF
chmod a+x ./AppRun
cat > ./fafclient.desktop <<\EOF
[Desktop Entry]
Type=Application
Name=FAForever AppImage
Comment=Supreme Commander Forged Alliance game lobby
Exec=python ./client/src
Icon=faficon
Terminal=false
Categories=Game;
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment