1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-27 13:43:25 +00:00

Updated Installation (markdown)

bdcollins18
2020-07-26 01:49:33 -04:00
parent 08ac645c9d
commit 5dbb5ff834

@@ -18,17 +18,19 @@ To download the pre-built executable, please visit the [releases page](https://g
<details>
<summary>Longer explanation of how to build from source</summary>
0. help:
- https://golang.org/doc/code.html
0. help:
- https://golang.org/doc/code.html
1. download and install go and git and make them available in `PATH`
2. set $GOPATH to whichever directory you want to use as workspace (if you don't do this, go uses as default location `your_homefolder/go` )
3. in cmd run `go get github.com/gilbertchen/duplicacy/duplicacy`
3.5 wait until the command finishes (it has to download A LOT) of sources needed for building duplicacy (all the libraries which duplicacy depends on -- for each supported storage and so on)
- 3.5 wait until the command finishes (it has to download A LOT) of sources needed for building duplicacy (all the libraries which duplicacy depends on -- for each supported storage and so on)
4. after the download is finished, `cd` to the folder `$GOPATH/src/github.com/gilbertchen/duplicacy` (see the similarity with the above github path? -> this is how go manages libraries and dependencies). There are all the sources for duplicacy.
- 4.5 if you want to build a different branch from `master`, now it's the time! you have to pull the remote branch which has the changes you need into local master -- I recommend using a good GUI: [Sourcetree](https://www.sourcetreeapp.com/) but you can do it from cmd as well. ([_you_](https://www.youtube.com/watch?v=BomVB3QkKQs) [_monster_](https://www.youtube.com/watch?v=f2pmcAjvWYQ)).
- 4.6 If you want to modify something in the sources, you should do it at this step (eg.: modify the number of retries for some storage)
5. now that you have the sources, you have to actually compile duplicacy: again in cmd `go install github.com/gilbertchen/duplicacy/duplicacy`
6. compiling should take no more than 10 seconds. You will find the executable file in the folder `$GOPATH/bin/duplicacy.exe`</details>
6. compiling should take no more than 10 seconds. You will find the executable file in the folder `$GOPATH/bin/duplicacy.exe`
</details>
# Build on macOS