From 4f5e990b5f99917d25d7319e74960b2feeba615a Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 5 May 2025 14:26:35 +0200 Subject: [PATCH] =?UTF-8?q?[godot]=C2=A0Fetch=20major.minor=20from=20git?= =?UTF-8?q?=20branch=20name.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spine-godot/SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spine-godot/SConstruct b/spine-godot/SConstruct index ee775d51a..bce6589fb 100644 --- a/spine-godot/SConstruct +++ b/spine-godot/SConstruct @@ -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" }