Skip to content

Fix: fxserver paths validation#69

Open
Maximus7474 wants to merge 3 commits into
mainfrom
fix/fxserver-paths-validation
Open

Fix: fxserver paths validation#69
Maximus7474 wants to merge 3 commits into
mainfrom
fix/fxserver-paths-validation

Conversation

@Maximus7474

@Maximus7474 Maximus7474 commented Jul 18, 2026

Copy link
Copy Markdown
Member

Description

This PR addresses an oversight in #63 where auto detect was validating the executable path when it was only a directory, the commits fix this oversight by reusing the ConfigManager.checkFXServerPaths(exec, data) within the detection to not only properly validate but also provides absolute paths for the values.

Alongside this fix, it also expands the checked paths for linux executables. Instead of requiring the path to opt/cfx-server/ it will also work to the parent folder of alpine, so in sum it will accept & auto-complete the following:

given path full path
./fxServer/ ./fxServer/alpine/opt/cfx-server/fxserver
./fxServer/alpine/opt/cfx-server/ ./fxServer/alpine/opt/cfx-server/fxserver
  • Generative AI was used in the creation of the changes of this PR

Tests

  • Tested in development mode
  • Passes typecheck
  • Builds & runs on Windows
  • Builds & runs on Linux

Additional Notes

This is useful for allowing auto-detect for cli-installer & #68

@Maximus7474
Maximus7474 requested a review from FjamZoo July 18, 2026 18:09
@Maximus7474 Maximus7474 added bug Something isn't working enhancement New feature or request labels Jul 18, 2026
@Maximus7474 Maximus7474 self-assigned this Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant