Skip to content

Simple AirDC Web Client update script

peps1 edited this page Sep 17, 2021 · 1 revision

A very simple update script you can use to update your AirDC++ Web Client to update to either stable or develop build

You may find a more updated version on my GitHub Gist: https://gist.github.com/peps1/5a3439704c6f37802796f3e83c8675d6

  • create a folder for example mkdir /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
#!/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