forked from kahst/BirdNET-Analyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyinstaller_gui.py
22 lines (20 loc) · 771 Bytes
/
pyinstaller_gui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Packages the analyzer into an application.
Librosa 0.9.2 has to be used, since pyinstaller cant package >=0.10.0.
See https://github.com/librosa/librosa/issues/1705.
"""
import os
import PyInstaller.__main__
PyInstaller.__main__.run(
[
"--icon=gui/img/birdnet-icon.ico",
"--name=BirdNET-Analyzer-GUI",
"--noconfirm",
"--clean",
"--add-data=eBird_taxonomy_codes_2021E.json" + os.pathsep + ".",
"--add-data=checkpoints" + os.pathsep + "checkpoints",
"--add-data=example/soundscape.wav" + os.pathsep + "example",
"--add-data=example/species_list.txt" + os.pathsep + "example", "--add-data=labels" + os.pathsep + "labels",
"--additional-hooks-dir=extra-hooks",
"gui.py",
]
)