v29.4-roots.2 · Commit 13: [PATCH 13/21] fix(qt): resolve Windows release icons
ci/test/test_windows_gui_workflows.py
Before: ci/test/test_windows_gui_workflows.py · After: ci/test/test_windows_gui_workflows.py
File metadata
index dee73a7b92585514340a2a0d14eaba2304cb09b8..a686420d253ad5606330ba54386ca357d74940f2 100755
Download original patch · Release notes
Diff rows 1–20 of 20. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
ci/test/test_windows_gui_workflows.py
CHANGED
|
@@ -14,6 +14,7 @@ CI_WORKFLOW = ROOT / ".github/workflows/ci.yml"
|
|
|
14
14
|
RELEASE_WORKFLOW = ROOT / ".github/workflows/release.yml"
|
|
15
15
|
GUI_TOOLS_ACTION = ROOT / ".github/actions/setup-windows-gui-tools/action.yml"
|
|
16
16
|
ROOTS_LOGO = ROOT / "src/qt/res/src/bitcoinroots-logo.svg"
|
|
17
|
+
WINDOWS_RESOURCES = ROOT / "src/qt/res/bitcoin-qt-res.rc"
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
def job(workflow, name):
|
|
@@ -33,6 +34,13 @@ class WindowsGuiWorkflowTest(unittest.TestCase):
|
|
|
33
34
|
_, _, viewbox_width, viewbox_height = logo.attrib["viewBox"].split()
|
|
34
35
|
self.assertEqual(viewbox_width, viewbox_height)
|
|
35
36
|
|
|
37
|
+
def test_windows_resources_use_source_absolute_icon_paths(self):
|
|
38
|
+
resources = WINDOWS_RESOURCES.read_text(encoding="utf-8")
|
|
39
|
+
icon_lines = [line for line in resources.splitlines() if " ICON " in line]
|
|
40
|
+
self.assertEqual(len(icon_lines), 4)
|
|
41
|
+
for line in icon_lines:
|
|
42
|
+
self.assertIn('@CMAKE_CURRENT_SOURCE_DIR@/res/icons/', line)
|
|
43
|
+
|
|
36
44
|
def assert_gui_asset_tools(self, windows_job):
|
|
37
45
|
self.assertIn("uses: ./.github/actions/setup-windows-gui-tools", windows_job)
|
|
38
46
|
self.assertLess(
|