Skip to content

Commit

Permalink
fix: new approach to setup user-env on UNIX
Browse files Browse the repository at this point in the history
An 'env' file is created now, heavily inspired by the rust's cargo
approach (See #65), located in '~/.config/godotenv/env'. It's
generated by GodotEnv and contains commands in 'sh' syntax to setup
the user shell.

The new 'env' file is responsible for:
- Prepend the GodotEnv bin folder path into PATH;
- 'Export' GODOT env-var pointing to Godot symlink.

We expect all POSIX compatible shells to work with it.

Was added, an auxiliary file to setup the 'fish' shell too.

Fixes #65
  • Loading branch information
edassis committed Feb 2, 2025
1 parent 1629ed3 commit d7a8700
Show file tree
Hide file tree
Showing 9 changed files with 279 additions and 680 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/install_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
matrix:
# Also try windows-2019?
os: [macos-latest, ubuntu-latest, windows-2019]
version: ["4.1.1", "4.3.0-dev.6"]
version: ["4.1.1", "4.4.0-beta.1"]
defaults:
run:
# Use bash shells on all platforms.
Expand Down Expand Up @@ -167,7 +167,6 @@ jobs:
working-directory: TestPackage/TestPackage.Tests
run: |
GODOT="$(dotnet ../../GodotEnv/bin/Debug/net8.0/Chickensoft.GodotEnv.dll godot env get)"
dotnet build
"$GODOT" --headless --run-tests --quit-on-finish
Expand Down
2 changes: 1 addition & 1 deletion GodotEnv.Tests/reports/branch_coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion GodotEnv.Tests/reports/line_coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d7a8700

Please sign in to comment.