bash-script-maker 1.6.0__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 (54) hide show
  1. {bash-script-maker-1.6.0/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.0 → bash-script-maker-1.7.0}/__version__.py +2 -2
  4. bash-script-maker-1.7.0/assets/bash-script-maker-128.png +0 -0
  5. bash-script-maker-1.7.0/assets/bash-script-maker-16.png +0 -0
  6. bash-script-maker-1.7.0/assets/bash-script-maker-256.png +0 -0
  7. bash-script-maker-1.7.0/assets/bash-script-maker-32.png +0 -0
  8. bash-script-maker-1.7.0/assets/bash-script-maker-48.png +0 -0
  9. bash-script-maker-1.7.0/assets/bash-script-maker-64.png +0 -0
  10. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/bash-script-maker.desktop +1 -1
  11. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0/bash_script_maker.egg-info}/PKG-INFO +1 -1
  12. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/SOURCES.txt +2 -0
  13. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/bash_script_maker.py +48 -1
  14. bash-script-maker-1.7.0/generate_icons.py +75 -0
  15. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/install_desktop_integration.sh +17 -4
  16. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/pyproject.toml +1 -1
  17. bash-script-maker-1.6.0/VERSION +0 -1
  18. bash-script-maker-1.6.0/assets/bash-script-maker-128.png +0 -0
  19. bash-script-maker-1.6.0/assets/bash-script-maker-16.png +0 -0
  20. bash-script-maker-1.6.0/assets/bash-script-maker-32.png +0 -0
  21. bash-script-maker-1.6.0/assets/bash-script-maker-48.png +0 -0
  22. bash-script-maker-1.6.0/assets/bash-script-maker-64.png +0 -0
  23. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/LICENSE +0 -0
  24. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/MANIFEST.in +0 -0
  25. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/README.md +0 -0
  26. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/assets/bash-script-maker.svg +0 -0
  27. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/assets.py +0 -0
  28. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/dependency_links.txt +0 -0
  29. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/entry_points.txt +0 -0
  30. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/not-zip-safe +0 -0
  31. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/requires.txt +0 -0
  32. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/bash_script_maker.egg-info/top_level.txt +0 -0
  33. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/beispiel_script.sh +0 -0
  34. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/compile_translations.py +0 -0
  35. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/create_release.sh +0 -0
  36. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/custom_dialogs.py +0 -0
  37. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/dev-requirements.txt +0 -0
  38. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/init_github.sh +0 -0
  39. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/install.sh +0 -0
  40. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/install_apt.sh +0 -0
  41. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/install_dnf.sh +0 -0
  42. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/locales/de/LC_MESSAGES/base.po +0 -0
  43. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/locales/en/LC_MESSAGES/base.po +0 -0
  44. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/localization.py +0 -0
  45. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/mein_script.sh +0 -0
  46. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/packages.txt +0 -0
  47. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/requirements.txt +0 -0
  48. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/setup.cfg +0 -0
  49. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/setup.py +0 -0
  50. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/setup_flatpak.py +0 -0
  51. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/start.sh +0 -0
  52. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/syntax_highlighter.py +0 -0
  53. {bash-script-maker-1.6.0 → bash-script-maker-1.7.0}/test_installation.sh +0 -0
  54. {bash-script-maker-1.6.0 → 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.0
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.0"
8
- __version_info__ = (1, 6, 0)
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.0
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
@@ -11,6 +11,7 @@ compile_translations.py
11
11
  create_release.sh
12
12
  custom_dialogs.py
13
13
  dev-requirements.txt
14
+ generate_icons.py
14
15
  init_github.sh
15
16
  install.sh
16
17
  install_apt.sh
@@ -29,6 +30,7 @@ test_installation.sh
29
30
  uninstall.sh
30
31
  assets/bash-script-maker-128.png
31
32
  assets/bash-script-maker-16.png
33
+ assets/bash-script-maker-256.png
32
34
  assets/bash-script-maker-32.png
33
35
  assets/bash-script-maker-48.png
34
36
  assets/bash-script-maker-64.png
@@ -267,7 +267,7 @@ class BashScriptMaker:
267
267
  script_dir = os.path.dirname(os.path.abspath(__file__))
268
268
 
269
269
  # Icon-Größen die wir haben
270
- icon_sizes = [16, 32, 48, 64, 128]
270
+ icon_sizes = [16, 32, 48, 64, 128, 256]
271
271
  icon_files = []
272
272
 
273
273
  # Verfügbare Icon-Dateien sammeln
@@ -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"
@@ -0,0 +1,75 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+ """
4
+ Icon-Generator für Bash-Script-Maker
5
+ Erstellt PNG-Icons in verschiedenen Größen aus der SVG-Datei
6
+ """
7
+
8
+ import os
9
+ import sys
10
+
11
+ def generate_icons():
12
+ """Generiert PNG-Icons aus der SVG-Datei"""
13
+ try:
14
+ import cairosvg
15
+ except ImportError:
16
+ print("Fehler: cairosvg ist nicht installiert.")
17
+ print("Installieren Sie es mit: pip install cairosvg")
18
+ return False
19
+
20
+ # Pfade definieren
21
+ script_dir = os.path.dirname(os.path.abspath(__file__))
22
+ svg_path = os.path.join(script_dir, "assets", "bash-script-maker.svg")
23
+
24
+ if not os.path.exists(svg_path):
25
+ print(f"Fehler: SVG-Datei nicht gefunden: {svg_path}")
26
+ return False
27
+
28
+ # Icon-Größen definieren
29
+ sizes = [16, 32, 48, 64, 128, 256]
30
+
31
+ print("=== Bash-Script-Maker Icon Generator ===")
32
+ print(f"Quelle: {svg_path}")
33
+ print()
34
+
35
+ success_count = 0
36
+
37
+ for size in sizes:
38
+ output_path = os.path.join(script_dir, "assets", f"bash-script-maker-{size}.png")
39
+
40
+ try:
41
+ # SVG zu PNG konvertieren
42
+ cairosvg.svg2png(
43
+ url=svg_path,
44
+ write_to=output_path,
45
+ output_width=size,
46
+ output_height=size
47
+ )
48
+
49
+ # Dateigröße überprüfen
50
+ file_size = os.path.getsize(output_path)
51
+ print(f"✓ {os.path.basename(output_path)} ({size}x{size}) - {file_size:,} Bytes")
52
+ success_count += 1
53
+
54
+ except Exception as e:
55
+ print(f"✗ Fehler bei {size}x{size}: {e}")
56
+
57
+ print()
58
+ print(f"Erfolgreich: {success_count}/{len(sizes)} Icons erstellt")
59
+ return success_count == len(sizes)
60
+
61
+ def main():
62
+ """Hauptfunktion"""
63
+ if len(sys.argv) > 1 and sys.argv[1] in ['-h', '--help']:
64
+ print(__doc__)
65
+ print("\nVerwendung:")
66
+ print(" python3 generate_icons.py")
67
+ print("\nVoraussetzungen:")
68
+ print(" pip install cairosvg")
69
+ return
70
+
71
+ success = generate_icons()
72
+ sys.exit(0 if success else 1)
73
+
74
+ if __name__ == "__main__":
75
+ main()
@@ -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.0"
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.0