build/windows: No need to double-define GIMP_MUTEX_VERSION on bundling script

We already take it from config.h
This commit is contained in:
Bruno Lopes 2025-05-27 11:34:12 -03:00
parent db6e72e6a2
commit b1eba99e46
No known key found for this signature in database

View file

@ -71,11 +71,7 @@ with open("config.h") as file:
if match:
key, value = match.groups()
os.environ[key] = value.strip().strip('"').strip("'")
if os.getenv('GIMP_UNSTABLE'):
gimp_mutex_version = os.getenv('GIMP_APP_VERSION')
else:
gimp_mutex_version = re.search(r'\d+', os.getenv('GIMP_APP_VERSION')).group()
(GIMP_DISTRIB / "gimp.cmd").write_text(f"powershell bin\\gimp-{gimp_mutex_version}.exe\n")
(GIMP_DISTRIB / "gimp.cmd").write_text(f"powershell bin\\gimp-{os.getenv('GIMP_MUTEX_VERSION')}.exe\n")
## Settings.