chgksuite_tk 0.0.3__py3-none-any.whl → 0.0.4__py3-none-any.whl
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_tk/gui.py +19 -0
- chgksuite_tk/version.py +1 -1
- {chgksuite_tk-0.0.3.dist-info → chgksuite_tk-0.0.4.dist-info}/METADATA +1 -1
- chgksuite_tk-0.0.4.dist-info/RECORD +9 -0
- chgksuite_tk-0.0.3.dist-info/RECORD +0 -9
- {chgksuite_tk-0.0.3.dist-info → chgksuite_tk-0.0.4.dist-info}/WHEEL +0 -0
- {chgksuite_tk-0.0.3.dist-info → chgksuite_tk-0.0.4.dist-info}/entry_points.txt +0 -0
- {chgksuite_tk-0.0.3.dist-info → chgksuite_tk-0.0.4.dist-info}/licenses/LICENSE +0 -0
- {chgksuite_tk-0.0.3.dist-info → chgksuite_tk-0.0.4.dist-info}/top_level.txt +0 -0
chgksuite_tk/gui.py
CHANGED
|
@@ -34,6 +34,13 @@ from chgksuite.version import __version__
|
|
|
34
34
|
from chgksuite.cli import ArgparseBuilder, single_action
|
|
35
35
|
|
|
36
36
|
|
|
37
|
+
def is_app_translocated(path):
|
|
38
|
+
"""Check if the app is running from macOS App Translocation."""
|
|
39
|
+
if sys.platform == "darwin" and path:
|
|
40
|
+
return "/AppTranslocation/" in path
|
|
41
|
+
return False
|
|
42
|
+
|
|
43
|
+
|
|
37
44
|
def get_pyapp_executable():
|
|
38
45
|
"""Return the pyapp executable path if running inside pyapp, else None."""
|
|
39
46
|
pyapp_env = os.environ.get("PYAPP", "")
|
|
@@ -314,6 +321,18 @@ class ParserWrapper(object):
|
|
|
314
321
|
|
|
315
322
|
def _run_self_update(self):
|
|
316
323
|
"""Run pyapp self-update command and close the application."""
|
|
324
|
+
# Check for macOS App Translocation
|
|
325
|
+
if is_app_translocated(self.pyapp_executable):
|
|
326
|
+
messagebox.showwarning(
|
|
327
|
+
"Обновление невозможно",
|
|
328
|
+
"Приложение запущено из временной папки (App Translocation).\n\n"
|
|
329
|
+
"Чтобы обновить приложение:\n"
|
|
330
|
+
"1. Закройте приложение\n"
|
|
331
|
+
"2. Переместите его в папку «Программы» (Applications)\n"
|
|
332
|
+
"3. Запустите приложение снова и нажмите «Обновить»",
|
|
333
|
+
)
|
|
334
|
+
return
|
|
335
|
+
|
|
317
336
|
try:
|
|
318
337
|
# Start the update process detached from current process
|
|
319
338
|
if sys.platform == "win32":
|
chgksuite_tk/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.4"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
chgksuite_tk/__main__.py,sha256=Da4F7YuRwygswPriZaDJE0VmJCtERNA9oXG_OW1xPyE,143
|
|
2
|
+
chgksuite_tk/gui.py,sha256=JyE1-SmzVTizTUmRLEtH6VIMBfBnuHGtIUKX6Xm1cjI,20191
|
|
3
|
+
chgksuite_tk/version.py,sha256=1mptEzQihbdyqqzMgdns_j5ZGK9gz7hR2bsgA_TnjO4,22
|
|
4
|
+
chgksuite_tk-0.0.4.dist-info/licenses/LICENSE,sha256=u8H6CkkghnAGkqpks_lKx1ZCuLfPj3Wcs70HS29Wi4Y,1074
|
|
5
|
+
chgksuite_tk-0.0.4.dist-info/METADATA,sha256=_oP_Zvlc1jO-mWyBDOPjtT8e0N5To5VcjNRnSTp-aJo,548
|
|
6
|
+
chgksuite_tk-0.0.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
7
|
+
chgksuite_tk-0.0.4.dist-info/entry_points.txt,sha256=89cXXBf7_WslybKh16vAx4kuf15qE0QMTigRb_V82xo,53
|
|
8
|
+
chgksuite_tk-0.0.4.dist-info/top_level.txt,sha256=KBLwuBeg1TUEBwNzpQoRrBXDYYdRnp16mc93VPwTQBk,13
|
|
9
|
+
chgksuite_tk-0.0.4.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
chgksuite_tk/__main__.py,sha256=Da4F7YuRwygswPriZaDJE0VmJCtERNA9oXG_OW1xPyE,143
|
|
2
|
-
chgksuite_tk/gui.py,sha256=JNSYLBUziXJAktWiKEJVSGOxnLLwB4Bh1V2qHOndNYg,19293
|
|
3
|
-
chgksuite_tk/version.py,sha256=4GZKi13lDTD25YBkGakhZyEQZWTER_OWQMNPoH_UM2c,22
|
|
4
|
-
chgksuite_tk-0.0.3.dist-info/licenses/LICENSE,sha256=u8H6CkkghnAGkqpks_lKx1ZCuLfPj3Wcs70HS29Wi4Y,1074
|
|
5
|
-
chgksuite_tk-0.0.3.dist-info/METADATA,sha256=M508DQ3kU6jMw5ZlwsgZmHNnTFVynMHg8QZ02j_IgQU,548
|
|
6
|
-
chgksuite_tk-0.0.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
7
|
-
chgksuite_tk-0.0.3.dist-info/entry_points.txt,sha256=89cXXBf7_WslybKh16vAx4kuf15qE0QMTigRb_V82xo,53
|
|
8
|
-
chgksuite_tk-0.0.3.dist-info/top_level.txt,sha256=KBLwuBeg1TUEBwNzpQoRrBXDYYdRnp16mc93VPwTQBk,13
|
|
9
|
-
chgksuite_tk-0.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|