Skip to content

Commit f2730b2

Browse files
0xzerolightclaude
andcommitted
Fix Windows PyInstaller build: skip icon when .ico not available
The SVG fallback crashed on Windows since PyInstaller only accepts .ico format there. Now skips the icon on Windows/macOS if native format is missing, letting PyInstaller use its default icon instead. Bump version to 2.0.2. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 91e903e commit f2730b2

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

anki_miner.spec

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ else:
2323
project_root, "anki_miner", "gui", "resources", "icons", "anki_miner.svg"
2424
)
2525

26-
# Fall back to SVG if platform-specific icon doesn't exist
26+
# Fall back to SVG on Linux; skip icon on Windows/macOS if native format not found
2727
if not os.path.exists(icon_file):
28-
icon_file = os.path.join(
29-
project_root, "anki_miner", "gui", "resources", "icons", "anki_miner.svg"
30-
)
28+
if platform.system() == "Linux":
29+
icon_file = os.path.join(
30+
project_root, "anki_miner", "gui", "resources", "icons", "anki_miner.svg"
31+
)
32+
else:
33+
icon_file = None
3134

3235
a = Analysis(
3336
[os.path.join(project_root, "anki_miner", "gui", "app.py")],

anki_miner/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
and creating Anki flashcards with audio, screenshots, and definitions.
66
"""
77

8-
__version__ = "2.0.1"
8+
__version__ = "2.0.2"
99
__author__ = "Anki Miner Contributors"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "anki-miner"
7-
version = "2.0.1"
7+
version = "2.0.2"
88
description = "Automated Japanese vocabulary mining from anime subtitles with Anki integration"
99
readme = "README.md"
1010
requires-python = ">=3.10"

0 commit comments

Comments
 (0)