Skip to content

Commit 35ff969

Browse files
committed
fix: Bundle some additional files on Windows
I hope we can get away with less than 45MB of icons...
1 parent b8d5ae9 commit 35ff969

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

windows/build.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ def find_depends(exe):
6868
print(f"Copy {src} -> out/{filename}")
6969
shutil.copy(f"{src}", 'out')
7070

71+
# Copy icons and other data
72+
os.mkdir("out/share")
73+
os.mkdir("out/lib")
74+
for i in ('share/icons', 'lib/p11-kit', 'lib/gdk-pixbuf-2.0'):
75+
src = f"C:\msys64\mingw32\{i}"
76+
print(f"Copy {src} -> out/{i}")
77+
shutil.copytree(src, f"out/{i}")
78+
7179
# Extract crate version from cargo
7280
meta_str = subprocess.check_output(CARGO + ["metadata", "--format-version", "1", "--no-deps"])
7381
meta = json.loads(meta_str)

0 commit comments

Comments
 (0)