forked from gooberinc/goober
Please enter the commit message for your changes. Lines starting
with '#' will be ignored, and an empty message aborts the commit.
This commit is contained in:
parent
c732049d79
commit
6637ece3d8
5 changed files with 14 additions and 5 deletions
|
@ -37,7 +37,7 @@ arch = platform.machine()
|
|||
slash_commands_enabled = True # 100% broken, its a newer enough version so its probably enabled by default.... fix this at somepoint or hard code it in goober central code
|
||||
launched = False
|
||||
latest_version = "0.0.0"
|
||||
local_version = "2.0.1"
|
||||
local_version = "2.0.2"
|
||||
os.environ['gooberlocal_version'] = local_version
|
||||
REACT = os.getenv("REACT")
|
||||
beta = True # this makes goober think its a beta version, so it will not update to the latest stable version or run any version checks
|
||||
|
|
|
@ -19,8 +19,6 @@ def is_remote_ahead(branch='main', remote='origin'):
|
|||
|
||||
# Automatically update the local repository if the remote is ahead
|
||||
def auto_update(branch='main', remote='origin'):
|
||||
if launched == True:
|
||||
return
|
||||
if launched == True:
|
||||
print(_("already_started"))
|
||||
return
|
||||
|
@ -77,7 +75,7 @@ def check_for_update():
|
|||
print(f"{YELLOW}{_('new_version').format(latest_version=latest_version, local_version=local_version)}{RESET}")
|
||||
print(f"{YELLOW}{_('changelog').format(VERSION_URL=VERSION_URL)}{RESET}")
|
||||
auto_update()
|
||||
elif local_version > latest_version and beta == True:
|
||||
elif beta == True:
|
||||
print(f"{YELLOW}You are running an \"unstable\" version of Goober, do not expect it to work properly.\nVersion {local_version}{RESET}")
|
||||
elif local_version > latest_version:
|
||||
print(f"{YELLOW}{_('modification_warning')}{RESET}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue