[godot] Fetch major.minor from git branch name.

This commit is contained in:
Mario Zechner 2025-05-05 14:26:35 +02:00
parent 15b96b3ea8
commit 4f5e990b5f

View File

@ -1,6 +1,7 @@
#!/usr/bin/env python
import os
import sys
import subprocess
from methods import print_error
@ -131,7 +132,7 @@ if env["platform"] == "macos" or env["platform"] == "ios":
"${BUNDLE_LIBRARY}": file,
"${BUNDLE_NAME}": "spine-godot",
"${BUNDLE_IDENTIFIER}": "com.esotericsoftware.spine.spine-godot",
"${BUNDLE_VERSION}": "4.2.0", # TODO: Get the proper version from somewhere. Note that this must be three integers.
"${BUNDLE_VERSION}": subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']).decode('utf-8').strip().split('-')[0] + '.0',
"${MIN_MACOS_VERSION}": "10.12",
"${MIN_IOS_VERSION}": "12.0"
}