Improve build section regarding symlinking

This commit is contained in:
Martchus 2023-06-09 18:13:23 +02:00
parent 091ec35580
commit 6f8931a8ad
1 changed files with 9 additions and 10 deletions

View File

@ -346,17 +346,16 @@ a test instance of Syncthing that does not affect a possibly existing Syncthing
1. Get the sources. For the latest version from Git clone the following repositories: 1. Get the sources. For the latest version from Git clone the following repositories:
``` ```
cd "$SOURCES" cd "$SOURCES"
git config core.symlinks true # only required on Windows export MSYS=winsymlinks:nativestrict # only required when using MSYS2
git clone https://github.com/Martchus/cpp-utilities.git c++utilities git clone -c core.symlinks=true https://github.com/Martchus/cpp-utilities.git c++utilities
git clone https://github.com/Martchus/qtutilities.git git clone -c core.symlinks=true https://github.com/Martchus/qtutilities.git
git clone https://github.com/Martchus/qtforkawesome.git git clone -c core.symlinks=true https://github.com/Martchus/qtforkawesome.git
git clone https://github.com/ForkAwesome/Fork-Awesome.git forkawesome git clone -c core.symlinks=true https://github.com/ForkAwesome/Fork-Awesome.git forkawesome
git clone https://github.com/Martchus/syncthingtray.git git clone -c core.symlinks=true https://github.com/Martchus/syncthingtray.git
git clone https://github.com/Martchus/subdirs.git git clone -c core.symlinks=true https://github.com/Martchus/subdirs.git
``` ```
Note that `git config core.symlinks=true` is only required under Windows to handle symlinks correctly. Note that `core.symlinks=true` is only required under Windows to handle symlinks correctly. This requires a
This requires a recent Git version and a filesystem which supports symlinks (NTFS works). Additionally, recent Git version and a filesystem which supports symlinks (NTFS works). Additionally, you need to
you need to
[enable Windows Developer Mode](https://learn.microsoft.com/en-us/gaming/game-bar/guide/developer-mode). [enable Windows Developer Mode](https://learn.microsoft.com/en-us/gaming/game-bar/guide/developer-mode).
If you run into "not found" errors on symlink creation use `git reset --hard` within the repository to If you run into "not found" errors on symlink creation use `git reset --hard` within the repository to
fix this. fix this.