bash-script-maker 1.4.6__tar.gz → 1.5.1__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 (47) hide show
  1. {bash-script-maker-1.4.6/bash_script_maker.egg-info → bash-script-maker-1.5.1}/PKG-INFO +1 -1
  2. bash-script-maker-1.5.1/VERSION +1 -0
  3. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/__version__.py +2 -2
  4. bash-script-maker-1.5.1/assets/bash-script-maker-128.png +0 -0
  5. bash-script-maker-1.5.1/assets/bash-script-maker-32.png +0 -0
  6. bash-script-maker-1.5.1/assets/bash-script-maker-48.png +0 -0
  7. bash-script-maker-1.5.1/assets/bash-script-maker-64.png +0 -0
  8. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1/bash_script_maker.egg-info}/PKG-INFO +1 -1
  9. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/bash_script_maker.egg-info/SOURCES.txt +4 -0
  10. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/bash_script_maker.egg-info/requires.txt +1 -0
  11. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/bash_script_maker.py +63 -0
  12. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/pyproject.toml +2 -1
  13. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/requirements.txt +1 -0
  14. bash-script-maker-1.4.6/VERSION +0 -1
  15. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/LICENSE +0 -0
  16. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/MANIFEST.in +0 -0
  17. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/README.md +0 -0
  18. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/assets/bash-script-maker-16.png +0 -0
  19. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/assets/bash-script-maker.svg +0 -0
  20. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/assets.py +0 -0
  21. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/bash-script-maker.desktop +0 -0
  22. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/bash_script_maker.egg-info/dependency_links.txt +0 -0
  23. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/bash_script_maker.egg-info/entry_points.txt +0 -0
  24. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/bash_script_maker.egg-info/not-zip-safe +0 -0
  25. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/bash_script_maker.egg-info/top_level.txt +0 -0
  26. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/beispiel_script.sh +0 -0
  27. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/compile_translations.py +0 -0
  28. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/create_release.sh +0 -0
  29. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/custom_dialogs.py +0 -0
  30. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/dev-requirements.txt +0 -0
  31. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/init_github.sh +0 -0
  32. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/install.sh +0 -0
  33. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/install_apt.sh +0 -0
  34. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/install_desktop_integration.sh +0 -0
  35. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/install_dnf.sh +0 -0
  36. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/locales/de/LC_MESSAGES/base.po +0 -0
  37. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/locales/en/LC_MESSAGES/base.po +0 -0
  38. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/localization.py +0 -0
  39. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/mein_script.sh +0 -0
  40. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/packages.txt +0 -0
  41. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/setup.cfg +0 -0
  42. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/setup.py +0 -0
  43. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/setup_flatpak.py +0 -0
  44. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/start.sh +0 -0
  45. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/syntax_highlighter.py +0 -0
  46. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/test_installation.sh +0 -0
  47. {bash-script-maker-1.4.6 → bash-script-maker-1.5.1}/uninstall.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bash-script-maker
3
- Version: 1.4.6
3
+ Version: 1.5.1
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.5.1
@@ -4,5 +4,5 @@
4
4
  Version information for Bash-Script-Maker
5
5
  """
6
6
 
7
- __version__ = "1.4.6"
8
- __version_info__ = (1, 4, 6)
7
+ __version__ = "1.5.1"
8
+ __version_info__ = (1, 5, 1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bash-script-maker
3
- Version: 1.4.6
3
+ Version: 1.5.1
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
@@ -27,7 +27,11 @@ start.sh
27
27
  syntax_highlighter.py
28
28
  test_installation.sh
29
29
  uninstall.sh
30
+ assets/bash-script-maker-128.png
30
31
  assets/bash-script-maker-16.png
32
+ assets/bash-script-maker-32.png
33
+ assets/bash-script-maker-48.png
34
+ assets/bash-script-maker-64.png
31
35
  assets/bash-script-maker.svg
32
36
  bash_script_maker.egg-info/PKG-INFO
33
37
  bash_script_maker.egg-info/SOURCES.txt
@@ -1,5 +1,6 @@
1
1
  ttkbootstrap>=1.10.1
2
2
  pygments>=2.15.1
3
+ Pillow>=9.0.0
3
4
 
4
5
  [dev]
5
6
  pytest>=6.0.0
@@ -236,6 +236,9 @@ class BashScriptMaker:
236
236
  self.root = root
237
237
  self.root.title("Bash-Script-Maker")
238
238
  self.root.geometry("1200x800")
239
+
240
+ # Icon setzen
241
+ self.set_window_icon()
239
242
 
240
243
  # Variablen für den letzten Pfad
241
244
  self.last_path = os.path.expanduser("~")
@@ -257,6 +260,66 @@ class BashScriptMaker:
257
260
  + "\n\n"
258
261
  )
259
262
 
263
+ def set_window_icon(self):
264
+ """Setzt das Fenster-Icon für Titelleiste und Taskleiste"""
265
+ try:
266
+ # Pfad zum Icon ermitteln
267
+ script_dir = os.path.dirname(os.path.abspath(__file__))
268
+
269
+ # Icon-Größen die wir haben
270
+ icon_sizes = [16, 32, 48, 64, 128]
271
+ icon_files = []
272
+
273
+ # Verfügbare Icon-Dateien sammeln
274
+ for size in icon_sizes:
275
+ icon_path = os.path.join(script_dir, "assets", f"bash-script-maker-{size}.png")
276
+ if os.path.exists(icon_path):
277
+ icon_files.append(icon_path)
278
+
279
+ # Fallback auf 16px Icon
280
+ if not icon_files:
281
+ fallback_path = os.path.join(script_dir, "assets", "bash-script-maker-16.png")
282
+ if os.path.exists(fallback_path):
283
+ icon_files.append(fallback_path)
284
+
285
+ if icon_files:
286
+ # PNG-Icons verwenden
287
+ try:
288
+ from PIL import Image, ImageTk
289
+ # Alle verfügbaren Icon-Größen laden
290
+ icons = []
291
+
292
+ for icon_path in icon_files:
293
+ img = Image.open(icon_path)
294
+ photo = ImageTk.PhotoImage(img)
295
+ icons.append(photo)
296
+
297
+ # Haupticon setzen (alle Größen)
298
+ self.root.iconphoto(True, *icons)
299
+ print(f"Icons gesetzt: {len(icons)} Größen")
300
+
301
+ except ImportError:
302
+ # Fallback ohne PIL - verwende größtes verfügbares Icon
303
+ try:
304
+ # Größtes Icon zuerst versuchen
305
+ best_icon = icon_files[-1] # Letztes in der Liste (größtes)
306
+ icon = tk.PhotoImage(file=best_icon)
307
+ self.root.iconphoto(True, icon)
308
+ print(f"Icon gesetzt (ohne PIL): {best_icon}")
309
+ except tk.TclError as e:
310
+ print(f"Fehler beim Laden des PNG-Icons: {e}")
311
+
312
+ else:
313
+ # Kein PNG gefunden, prüfe SVG
314
+ svg_icon_path = os.path.join(script_dir, "assets", "bash-script-maker.svg")
315
+ if os.path.exists(svg_icon_path):
316
+ print(f"SVG-Icon gefunden, aber PNG wird für Tkinter bevorzugt: {svg_icon_path}")
317
+ else:
318
+ print("Keine Icon-Datei gefunden in assets/")
319
+
320
+ except Exception as e:
321
+ print(f"Fehler beim Setzen des Icons: {e}")
322
+
260
323
  def create_menu(self):
261
324
  """Erstellt das Menü der Anwendung"""
262
325
  menubar = tk.Menu(self.root)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "bash-script-maker"
7
- version = "1.4.6"
7
+ version = "1.5.1"
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"}
@@ -34,6 +34,7 @@ requires-python = ">=3.8"
34
34
  dependencies = [
35
35
  "ttkbootstrap>=1.10.1",
36
36
  "pygments>=2.15.1",
37
+ "Pillow>=9.0.0",
37
38
  ]
38
39
 
39
40
  [project.optional-dependencies]
@@ -1,3 +1,4 @@
1
1
  # Core runtime dependencies
2
2
  ttkbootstrap>=1.10.1
3
3
  pygments>=2.15.1
4
+ Pillow>=9.0.0
@@ -1 +0,0 @@
1
- 1.4.6