Skipping update check when running from sources
This commit is contained in:
parent
c80ca295c6
commit
ac7ef77a8d
@ -1,4 +1,5 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
import sys
|
||||||
import application
|
import application
|
||||||
import platform
|
import platform
|
||||||
import logging
|
import logging
|
||||||
@ -9,6 +10,9 @@ from .wxUpdater import *
|
|||||||
logger = logging.getLogger("updater")
|
logger = logging.getLogger("updater")
|
||||||
|
|
||||||
def do_update(update_type="stable"):
|
def do_update(update_type="stable"):
|
||||||
|
# Updates cannot be performed in the source code version of Socializer.
|
||||||
|
if hasattr(sys, "frozen") == False:
|
||||||
|
return
|
||||||
if update_type == "stable":
|
if update_type == "stable":
|
||||||
endpoint = application.update_stable_url
|
endpoint = application.update_stable_url
|
||||||
version = application.version
|
version = application.version
|
||||||
|
Loading…
Reference in New Issue
Block a user