Ship AppImage with bundled GTK runtime and automated releases
AppImage / build (push) Has been cancelled
AppImage / release (push) Has been cancelled
Tests / unit (de, 3.10) (push) Has been cancelled
Tests / unit (de, 3.14) (push) Has been cancelled
Tests / unit (en, 3.10) (push) Has been cancelled
Tests / unit (en, 3.14) (push) Has been cancelled

This commit is contained in:
Justin
2026-09-05 21:32:30 +02:00
parent dd0809e877
commit 3de4ca48e0
25 changed files with 690 additions and 32 deletions
+8 -3
View File
@@ -4,7 +4,7 @@ import argparse
import os
from pathlib import Path
from btd700.i18n import tr
from btd700.integration import APP_ID, autostart_path, desktop_entry
from btd700.integration import APP_ID, autostart_path, desktop_entry, install_appimage_icon, installed_icon
def main():
@@ -16,12 +16,17 @@ def main():
if args.uninstall:
destination.unlink(missing_ok=True)
autostart_path().unlink(missing_ok=True)
print(tr('Menüeintrag und Autostart entfernt. Der Projektordner bleibt erhalten.'))
installed_icon().unlink(missing_ok=True)
print(tr('Menüeintrag und Autostart entfernt. Die Programmdateien bleiben erhalten.'))
return
destination.parent.mkdir(parents=True, exist_ok=True)
install_appimage_icon()
destination.write_text(desktop_entry())
print(tr('Installiert: {path}').format(path=destination))
print(tr('Im Anwendungsmenü „BTD 700 Control“ öffnen. Der Projektordner muss erhalten bleiben.'))
if os.environ.get('APPIMAGE') and os.environ.get('APPDIR'):
print(tr('Im Anwendungsmenü „BTD 700 Control“ öffnen. Die AppImage-Datei muss an diesem Ort bleiben.'))
else:
print(tr('Im Anwendungsmenü „BTD 700 Control“ öffnen. Der Projektordner muss erhalten bleiben.'))
if __name__ == '__main__':