Skip to content

Commit 33a4acd

Browse files
committed
update Collect Data Images Icons to Resource File
1 parent 3be41f8 commit 33a4acd

File tree

14 files changed

+57893
-4
lines changed

14 files changed

+57893
-4
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,9 @@ src/__pycache__/examples/basic/tmp/1
190190
src/2.bak
191191
src/client-windows.py.bak
192192
src/src/pyinstaller/
193+
src/__pycache__/res.cpython-313.pyc
194+
src/_internal/img/flags/1
195+
src/_internal/img/flags/test.txt
196+
src/client-windows.py.bak
197+
src/img_data.qrc.bak
198+
src/resources.qrc.bak
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-27 18:14:51,489: INFO: init ok: session start...
1+
2025-01-28 14:56:37,125: INFO: init ok: session start...
-8 Bytes
Binary file not shown.
866 KB
Binary file not shown.

src/_internal/img/flags/test.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/build_loc.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ set BASEDIR=%cd%
3030
set SRC=%BASEDIR%/src
3131
set VPA=%BASEDIR%/venv
3232

33+
pyrcc5 resources.qrc -o resources_rc.py
34+
python -m compileall resources_rc.py
35+
3336
cd %BASEDIR%\locales\de_de\LC_MESSAGES
3437
rm -rf observer.mo.gz
3538
msgfmt -o observer.mo observer.po

src/client-windows.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,18 @@ def add_font_to_registry(font_name, font_path):
448448
# disassembly library
449449
# ------------------------------------------------------------------------
450450
from capstone import Cs, CS_ARCH_X86, CS_MODE_64
451-
451+
452452
# ------------------------------------------------------------------------
453453
# query IP addresses ...
454454
# ------------------------------------------------------------------------
455455
import ipapi
456456
import httpx
457457

458+
# ------------------------------------------------------------------------
459+
# resource data like pictures or icons ...
460+
# ------------------------------------------------------------------------
461+
import resources_rc
462+
458463
except ImportError as e:
459464
# Extrahiere den Modulnamen aus der Fehlermeldung
460465
match = re.search(r"No module named '([^']+)'", str(e))

src/client-windows.py.bak

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8596,8 +8596,12 @@ class PascalParser:
85968596

85978597
# Überprüfe die Deklarationen in diesem Abschnitt
85988598
for declaration in repeat_section["declarations"]:
8599+
if not isinstance(declaration, dict) or "type" not in declaration:
8600+
self.errors.append((line, pos, f"Ungültige Deklaration in der Grammatik: {declaration}"))
8601+
return False, token_index
8602+
85998603
if token_index >= len(self.tokens):
8600-
self.errors.append((line, pos, f"Fehlendes Token: {declaration}"))
8604+
self.errors.append((line, pos, f"Fehlendes Token für Deklaration: {declaration}"))
86018605
return False, token_index
86028606

86038607
line, pos, token, token_type = self.tokens[token_index]
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)