Skip to content

Commit

Permalink
Changed version number when no version is specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ohjurot committed Jan 27, 2025
1 parent 373e061 commit db1f6dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/mox/mox.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"""
import os
import platform
import datetime

MOX_ARCH_MAP = {
# x86 32bit
Expand Down Expand Up @@ -57,8 +58,10 @@ def GetFilename(product, version, system, conf, arch, extension):
def AutomaticFilename(product, version, conf, extension):
return GetFilename(product, version, platform.system(), conf, GetPlatformInfo()["premake_arch"], extension)

def GetAppVersion(default="unknown"):
def GetAppVersion(default=""):
version = os.environ.get("MOXPP_VERSION")
if version is None:
return default
if len(default) > 0:
return default
return f"0.0.0+dev.{ datetime.datetime.now().strftime('%Y%m%d') }"
return version

0 comments on commit db1f6dc

Please sign in to comment.