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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chgksuite_qt
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: A GUI wrapper for chgksuite using PyQt6
5
5
  Author-email: Alexander Pecheny <ap@pecheny.me>
6
6
  License-Expression: MIT
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chgksuite_qt
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: A GUI wrapper for chgksuite using PyQt6
5
5
  Author-email: Alexander Pecheny <ap@pecheny.me>
6
6
  License-Expression: MIT
@@ -1 +0,0 @@
1
- __version__ = "0.0.5"
File without changes
File without changes