bash-script-maker 1.6.1__tar.gz → 1.7.0__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.
Files changed (49) hide show
  1. {bash-script-maker-1.6.1/bash_script_maker.egg-info → bash-script-maker-1.7.0}/PKG-INFO +1 -1
  2. bash-script-maker-1.7.0/VERSION +1 -0
  3. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/__version__.py +2 -2
  4. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/bash-script-maker.desktop +1 -1
  5. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0/bash_script_maker.egg-info}/PKG-INFO +1 -1
  6. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/bash_script_maker.py +47 -0
  7. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/install_desktop_integration.sh +17 -4
  8. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/pyproject.toml +1 -1
  9. bash-script-maker-1.6.1/VERSION +0 -1
  10. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/LICENSE +0 -0
  11. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/MANIFEST.in +0 -0
  12. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/README.md +0 -0
  13. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/assets/bash-script-maker-128.png +0 -0
  14. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/assets/bash-script-maker-16.png +0 -0
  15. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/assets/bash-script-maker-256.png +0 -0
  16. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/assets/bash-script-maker-32.png +0 -0
  17. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/assets/bash-script-maker-48.png +0 -0
  18. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/assets/bash-script-maker-64.png +0 -0
  19. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/assets/bash-script-maker.svg +0 -0
  20. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/assets.py +0 -0
  21. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/SOURCES.txt +0 -0
  22. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/dependency_links.txt +0 -0
  23. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/entry_points.txt +0 -0
  24. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/not-zip-safe +0 -0
  25. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/requires.txt +0 -0
  26. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/top_level.txt +0 -0
  27. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/beispiel_script.sh +0 -0
  28. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/compile_translations.py +0 -0
  29. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/create_release.sh +0 -0
  30. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/custom_dialogs.py +0 -0
  31. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/dev-requirements.txt +0 -0
  32. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/generate_icons.py +0 -0
  33. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/init_github.sh +0 -0
  34. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/install.sh +0 -0
  35. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/install_apt.sh +0 -0
  36. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/install_dnf.sh +0 -0
  37. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/locales/de/LC_MESSAGES/base.po +0 -0
  38. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/locales/en/LC_MESSAGES/base.po +0 -0
  39. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/localization.py +0 -0
  40. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/mein_script.sh +0 -0
  41. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/packages.txt +0 -0
  42. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/requirements.txt +0 -0
  43. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/setup.cfg +0 -0
  44. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/setup.py +0 -0
  45. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/setup_flatpak.py +0 -0
  46. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/start.sh +0 -0
  47. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/syntax_highlighter.py +0 -0
  48. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/test_installation.sh +0 -0
  49. {bash-script-maker-1.6.1 → bash-script-maker-1.7.0}/uninstall.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bash-script-maker
3
- Version: 1.6.1
3
+ Version: 1.7.0
4
4
  Summary: Ein GUI-Programm zur Erstellung von Bash-Scripts mit visueller Unterstützung
5
5
  Home-page: https://github.com/securebitsorg/bash-script-maker
6
6
  Author: Marcel Dellmann
@@ -0,0 +1 @@
1
+ 1.7.0
@@ -4,5 +4,5 @@
4
4
  Version information for Bash-Script-Maker
5
5
  """
6
6
 
7
- __version__ = "1.6.1"
8
- __version_info__ = (1, 6, 1)
7
+ __version__ = "1.7.0"
8
+ __version_info__ = (1, 7, 0)
@@ -2,7 +2,7 @@
2
2
  Name=Bash-Script-Maker
3
3
  Comment=Ein GUI-Programm zur Erstellung von Bash-Scripts
4
4
  Exec=bash-script-maker
5
- Icon=bash-script-maker.svg
5
+ Icon=bash-script-maker
6
6
  Terminal=false
7
7
  Type=Application
8
8
  Categories=Development;Utility;TextEditor;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bash-script-maker
3
- Version: 1.6.1
3
+ Version: 1.7.0
4
4
  Summary: Ein GUI-Programm zur Erstellung von Bash-Scripts mit visueller Unterstützung
5
5
  Home-page: https://github.com/securebitsorg/bash-script-maker
6
6
  Author: Marcel Dellmann
@@ -329,6 +329,50 @@ class BashScriptMaker:
329
329
  except Exception as e:
330
330
  print(f"Fehler beim Setzen des Icons: {e}")
331
331
 
332
+ def add_logo_to_toolbar(self, toolbar):
333
+ """Fügt das Logo zur Toolbar hinzu"""
334
+ try:
335
+ # Pfad zum Icon ermitteln
336
+ script_dir = os.path.dirname(os.path.abspath(__file__))
337
+ logo_path = os.path.join(script_dir, "assets", "bash-script-maker-32.png")
338
+
339
+ if os.path.exists(logo_path):
340
+ try:
341
+ from PIL import Image, ImageTk
342
+
343
+ # Logo laden und für Toolbar optimieren
344
+ img = Image.open(logo_path)
345
+ # Etwas kleiner für die Toolbar (24x24)
346
+ img = img.resize((24, 24), Image.Resampling.LANCZOS)
347
+ logo_photo = ImageTk.PhotoImage(img)
348
+
349
+ # Logo-Label erstellen
350
+ logo_label = ttk.Label(toolbar, image=logo_photo)
351
+ logo_label.image = logo_photo # Referenz behalten
352
+ logo_label.pack(side=tk.LEFT, padx=(0, 10), pady=20)
353
+
354
+ # Tooltip hinzufügen
355
+ ToolTip(logo_label, text="Bash-Script-Maker v" + __version__)
356
+
357
+ print("Logo zur Toolbar hinzugefügt")
358
+
359
+ except ImportError:
360
+ # Fallback ohne PIL - verwende Text-Logo
361
+ logo_label = ttk.Label(
362
+ toolbar,
363
+ text="🖥️",
364
+ font=("Arial", 16)
365
+ )
366
+ logo_label.pack(side=tk.LEFT, padx=(0, 10), pady=20)
367
+ ToolTip(logo_label, text="Bash-Script-Maker v" + __version__)
368
+ print("Text-Logo zur Toolbar hinzugefügt")
369
+
370
+ else:
371
+ print(f"Logo-Datei nicht gefunden: {logo_path}")
372
+
373
+ except Exception as e:
374
+ print(f"Fehler beim Hinzufügen des Logos: {e}")
375
+
332
376
  def create_menu(self):
333
377
  """Erstellt das Menü der Anwendung"""
334
378
  menubar = tk.Menu(self.root)
@@ -453,6 +497,9 @@ class BashScriptMaker:
453
497
  toolbar = ttk.Frame(self.root)
454
498
  toolbar.pack(side=tk.TOP, fill=tk.X, padx=5, pady=(5, 0))
455
499
 
500
+ # Logo hinzufügen (links)
501
+ self.add_logo_to_toolbar(toolbar)
502
+
456
503
  # Toolbar-Inhalte - LINKS
457
504
  btn_new = ttk.Button(
458
505
  toolbar, text=_("Neu"), command=self.new_script, bootstyle="primary"
@@ -64,15 +64,28 @@ else
64
64
  exit 1
65
65
  fi
66
66
 
67
- # Kopiere Icon
68
- print_status "Installiere Icon..."
67
+ # Kopiere Icons
68
+ print_status "Installiere Icons..."
69
+
70
+ # SVG Icon
69
71
  if cp assets/bash-script-maker.svg ~/.local/share/icons/hicolor/scalable/apps/; then
70
- print_success "Icon installiert: ~/.local/share/icons/hicolor/scalable/apps/bash-script-maker.svg"
72
+ print_success "SVG-Icon installiert: ~/.local/share/icons/hicolor/scalable/apps/bash-script-maker.svg"
71
73
  else
72
- print_error "Fehler beim Kopieren des Icons!"
74
+ print_error "Fehler beim Kopieren des SVG-Icons!"
73
75
  exit 1
74
76
  fi
75
77
 
78
+ # PNG Icons in verschiedenen Größen
79
+ mkdir -p ~/.local/share/icons/hicolor/48x48/apps
80
+ mkdir -p ~/.local/share/icons/hicolor/64x64/apps
81
+ mkdir -p ~/.local/share/icons/hicolor/128x128/apps
82
+
83
+ cp assets/bash-script-maker-48.png ~/.local/share/icons/hicolor/48x48/apps/bash-script-maker.png
84
+ cp assets/bash-script-maker-64.png ~/.local/share/icons/hicolor/64x64/apps/bash-script-maker.png
85
+ cp assets/bash-script-maker-128.png ~/.local/share/icons/hicolor/128x128/apps/bash-script-maker.png
86
+
87
+ print_success "PNG-Icons installiert in verschiedenen Größen"
88
+
76
89
  # Desktop-Datenbank aktualisieren
77
90
  print_status "Aktualisiere Desktop-Datenbank..."
78
91
  if command -v update-desktop-database &> /dev/null; then
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "bash-script-maker"
7
- version = "1.6.1"
7
+ version = "1.7.0"
8
8
  description = "Ein GUI-Programm zur Erstellung von Bash-Scripts mit visueller Unterstützung"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -1 +0,0 @@
1
- 1.6.1