Skip to content

Instantly share code, notes, and snippets.

@peps1
Last active September 17, 2021 20:06
Show Gist options
  • Select an option

  • Save peps1/5a3439704c6f37802796f3e83c8675d6 to your computer and use it in GitHub Desktop.

Select an option

Save peps1/5a3439704c6f37802796f3e83c8675d6 to your computer and use it in GitHub Desktop.
simple script to update airdc binary builds, either develop(default) or stable
#!/bin/bash
# simple script to update airdc binary builds, either develop(default) or stable
#
# URL: https://gist.github.com/peps1/5a3439704c6f37802796f3e83c8675d6
#
# * create a folder for example /home/user/airdc
# * enter folder: cd /home/user/airdc
# * place this script the folder
# * make script executable: chmod +x airdc_update.sh
# * uncomment last line if you want to start airdc right after running the script
# * run this script: ./airdc_update.sh or ./airdc_update.sh stable
set -e
if [[ $1 == 'stable' ]]; then
name="stable"
file="master"
echo "install stable version"
else
name="develop"
file="develop"
fi
FILE_NAME="airdcpp_latest_${file}_64-bit_portable.tar.gz"
if [[ -f $FILE_NAME ]]; then
rm $FILE_NAME
fi
wget https://web-builds.airdcpp.net/${name}/$FILE_NAME
rm -rf airdcpp-webclient/web-resources
tar -zxvf $FILE_NAME
# uncomment the last line to start airdc after updating
#./airdcpp-webclient/airdcppd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment