Created
February 20, 2026 21:15
-
-
Save Gregorein/368a230990b0da2a5308fc99504c1c2a to your computer and use it in GitHub Desktop.
Wrapper script to make Redot compatible with godot-tools VSCode extension. The extension validates the executable by checking for version format matching 3.x or 4.x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Wrapper script to make Redot compatible with godot-tools VSCode extension | |
| # The extension validates the executable by checking for version format matching 3.x or 4.x | |
| # Get the real Redot binary | |
| REDOT_BINARY="/usr/bin/redot" | |
| # If the first argument is --version, intercept it and format for godot-tools | |
| if [ "$1" = "--version" ]; then | |
| # godot-tools expects format: 3.x.x or 4.x.x (checks first digit must be 3 or 4) | |
| # Redot 26.1 is based on Godot 4.3, so we report as 4.3.0 | |
| echo "4.3.0.stable.official" | |
| exit 0 | |
| fi | |
| # For all other commands, just pass through to Redot | |
| exec "$REDOT_BINARY" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment