chgksuite_qt 0.0.5__tar.gz → 0.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/PKG-INFO +1 -1
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/chgksuite_qt/gui.py +20 -0
- chgksuite_qt-0.0.6/chgksuite_qt/version.py +1 -0
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/chgksuite_qt.egg-info/PKG-INFO +1 -1
- chgksuite_qt-0.0.5/chgksuite_qt/version.py +0 -1
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/LICENSE.txt +0 -0
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/chgksuite_qt/__main__.py +0 -0
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/chgksuite_qt.egg-info/SOURCES.txt +0 -0
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/chgksuite_qt.egg-info/dependency_links.txt +0 -0
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/chgksuite_qt.egg-info/entry_points.txt +0 -0
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/chgksuite_qt.egg-info/requires.txt +0 -0
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/chgksuite_qt.egg-info/top_level.txt +0 -0
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/pyproject.toml +0 -0
- {chgksuite_qt-0.0.5 → chgksuite_qt-0.0.6}/setup.cfg +0 -0
|
@@ -31,6 +31,13 @@ from chgksuite.version import __version__
|
|
|
31
31
|
from chgksuite.cli import ArgparseBuilder, single_action
|
|
32
32
|
|
|
33
33
|
|
|
34
|
+
def is_app_translocated(path):
|
|
35
|
+
"""Check if the app is running from macOS App Translocation."""
|
|
36
|
+
if sys.platform == "darwin" and path:
|
|
37
|
+
return "/AppTranslocation/" in path
|
|
38
|
+
return False
|
|
39
|
+
|
|
40
|
+
|
|
34
41
|
def get_pyapp_executable():
|
|
35
42
|
"""Return the pyapp executable path if running inside pyapp, else None."""
|
|
36
43
|
pyapp_env = os.environ.get("PYAPP", "")
|
|
@@ -367,6 +374,19 @@ class ParserWrapper(object):
|
|
|
367
374
|
|
|
368
375
|
def _run_self_update(self):
|
|
369
376
|
"""Run pyapp self-update command and close the application."""
|
|
377
|
+
# Check for macOS App Translocation
|
|
378
|
+
if is_app_translocated(self.pyapp_executable):
|
|
379
|
+
QtWidgets.QMessageBox.warning(
|
|
380
|
+
self.window,
|
|
381
|
+
"Обновление невозможно",
|
|
382
|
+
"Приложение запущено из временной папки (App Translocation).\n\n"
|
|
383
|
+
"Чтобы обновить приложение:\n"
|
|
384
|
+
"1. Закройте приложение\n"
|
|
385
|
+
"2. Переместите его в папку «Программы» (Applications)\n"
|
|
386
|
+
"3. Запустите приложение снова и нажмите «Обновить»",
|
|
387
|
+
)
|
|
388
|
+
return
|
|
389
|
+
|
|
370
390
|
try:
|
|
371
391
|
# Start the update process detached from current process
|
|
372
392
|
if sys.platform == "win32":
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.6"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.5"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|