mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix duplicate Anki icons appearing in dock
MPV was previously stored in the MacOS/ folder, which made macOS think it should have a dock icon. Fixes #1812
This commit is contained in:
parent
5e1b67bcbc
commit
383c890b0d
2 changed files with 6 additions and 4 deletions
|
@ -247,6 +247,8 @@ def _packagedCmd(cmd: list[str]) -> tuple[Any, dict[str, str]]:
|
|||
|
||||
if is_win:
|
||||
packaged_path = Path(sys.prefix) / "audio" / (cmd[0] + ".exe")
|
||||
elif is_mac:
|
||||
packaged_path = Path(sys.prefix) / ".." / "Resources" / cmd[0]
|
||||
else:
|
||||
packaged_path = Path(sys.prefix) / cmd[0]
|
||||
if packaged_path.exists():
|
||||
|
|
|
@ -209,9 +209,9 @@ exports_files(["l10n.toml"])
|
|||
name = "audio_mac_amd64",
|
||||
build_file_content = " ",
|
||||
urls = [
|
||||
"https://github.com/ankitects/anki-bundle-extras/releases/download/anki-2022-02-09/audio-mac-amd64.tar.gz",
|
||||
"https://github.com/ankitects/anki-bundle-extras/releases/download/anki-2022-05-26/audio-mac-amd64.tar.gz",
|
||||
],
|
||||
sha256 = "d9310cbd6bed09d6d36deb8b7611bffbd161628512b1bf8d7becfdf78b5cd1dd",
|
||||
sha256 = "ecbb3c878805cdd58b1a0b8e3fd8c753b8ce3ad36c8b5904a79111f9db29ff42",
|
||||
)
|
||||
|
||||
maybe(
|
||||
|
@ -219,9 +219,9 @@ exports_files(["l10n.toml"])
|
|||
name = "audio_mac_arm64",
|
||||
build_file_content = " ",
|
||||
urls = [
|
||||
"https://github.com/ankitects/anki-bundle-extras/releases/download/anki-2022-02-09/audio-mac-arm64.tar.gz",
|
||||
"https://github.com/ankitects/anki-bundle-extras/releases/download/anki-2022-05-26/audio-mac-arm64.tar.gz",
|
||||
],
|
||||
sha256 = "c30a772132a16fa79d9a1e60f5dce2f91fe8077e2709a8f39ef499d49f6a4b0e",
|
||||
sha256 = "f6c4af9be59ae1c82a16f5c6307f13cbf31b49ad7b69ce1cb6e0e7b403cfdb8f",
|
||||
)
|
||||
|
||||
maybe(
|
||||
|
|
Loading…
Reference in a new issue