Implement symlinking of shared mods

Add symlinkMods function which takes an instance and a shared mods
folder as input and updates or creates the instance mods folder from it
by symlinking the mods in the shared mods folder to the instance mods
folder.

On Windows this uses hard links as the symlinks require elevated
privileges.
This commit is contained in:
Hornwitser committed 2019-10-14 15:51:45 +02:00
1 parent 2ff52a1cf2
commit 6a870be233
5 files changed
+135 -26

No files matched your search

-1
View File
@@ -62,7 +62,6 @@
"prom-client": "^10.2.3",
"rcon-client-fork": "^3.2.0",
"request": "^2.83.0",
"rmdir-sync": "^1.0.1",
"sanitizer": "^0.1.3",
"simple-git": "^1.96.0",
"single-line-log": "^1.1.2",