Last active
March 19, 2019 10:00
-
-
Save mmaridev/ad184a7228483d945b6fc6abd441093a to your computer and use it in GitHub Desktop.
Compile borg from sources to standalone
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 | |
| cd /tmp | |
| pip3 install virtualenv | |
| if [ ! -e borgbackup-1.1.9.tar.gz ]; then | |
| wget https://github.com/borgbackup/borg/releases/download/1.1.9/borgbackup-1.1.9.tar.gz | |
| fi | |
| tar xvzf borgbackup-1.1.9.tar.gz | |
| virtualenv --python=python3 borg-env | |
| source borg-env/bin/activate | |
| cd borgbackup-1.1.9 | |
| pip install -r requirements.d/development.txt | |
| pip install pyinstaller | |
| pip install -e . | |
| cd src | |
| pyinstaller -F -n borg-linux-64-new --hidden-import=logging.config borg/__main__.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment