Last active
September 17, 2021 20:06
-
-
Save peps1/5a3439704c6f37802796f3e83c8675d6 to your computer and use it in GitHub Desktop.
simple script to update airdc binary builds, either develop(default) or stable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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