1
0
mirror of https://github.com/citizenfx/cfx-server-data.git synced 2025-02-13 09:42:53 +08:00

Fix symlink targets.

Targets are relative from the link, not the current directory.
This commit is contained in:
Technetium 2020-11-26 17:00:22 +01:00 committed by GitHub
parent ab4eccec83
commit 6eaa3525a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,13 +11,13 @@ You can also consider using the repository as a submodule + symlink for your own
**Linux**: **Linux**:
``` ```
$ git submodule add https://github.com/citizenfx/cfx-server-data.git vendor/server-data $ git submodule add https://github.com/citizenfx/cfx-server-data.git vendor/server-data
$ ln -s vendor/server-data/resources/ 'resources/[base]/' $ ln -s ../vendor/server-data/resources/ 'resources/[base]/'
``` ```
**Windows**: **Windows**:
``` ```
> git submodule add https://github.com/citizenfx/cfx-server-data.git vendor/server-data > git submodule add https://github.com/citizenfx/cfx-server-data.git vendor/server-data
> mklink /d resources\[base] vendor\server-data\resources > mklink /d resources\[base] ..\vendor\server-data\resources
``` ```
## Policy ## Policy
@ -28,4 +28,4 @@ existing ones - anything goes, as long as you make sure to:
2. Not change default behavior without a toggle. 2. Not change default behavior without a toggle.
3. Use best practices (convars over config files, native commands wherever possible, etc.) 3. Use best practices (convars over config files, native commands wherever possible, etc.)
Modifying or rewriting existing resources in this repository for local use only is _strongly_ discouraged. Modifying or rewriting existing resources in this repository for local use only is _strongly_ discouraged.