|
@@ -95,8 +95,8 @@ type VERIFY_RESULT = {
|
|
|
|
|
|
export function verify_godot_version(godotPath: string, expectedVersion: "3" | "4" | string): VERIFY_RESULT {
|
|
|
try {
|
|
|
- const output = execSync(`"${godotPath}" -h`).toString().trim();
|
|
|
- const pattern = /^Godot Engine v(([34])\.([0-9]+)(?:\.[0-9]+)?)/m;
|
|
|
+ const output = execSync(`"${godotPath}" --version`).toString().trim();
|
|
|
+ const pattern = /^(([34])\.([0-9]+)(?:\.[0-9]+)?)/m;
|
|
|
const match = output.match(pattern);
|
|
|
if (!match) {
|
|
|
return { status: "INVALID_EXE" };
|