-
-
Notifications
You must be signed in to change notification settings - Fork 70
Building for Windows
James edited this page Sep 2, 2024
·
34 revisions
Tauon for Windows can be built using MSYS2
- Go to http://www.msys2.org/ and download the x86_64 installer.
- Follow the instructions on the page for setting up the basic environment.
- Run
C:\msys64\mingw64.exe
- a terminal window should pop up. - Update by running
pacman -Syu
. (You may need to reopen mingw64.exe after this) - Update again and install git
pacman -Syu git
. - Clone Tauon repo
git clone https://github.com/Taiko2k/TauonMusicBox.git --recursive
cd TauonMusicBox
- Execute
pacman -S - < extra/msyspac.txt
to install required dependencies. - (optional) Download and place
librespot.exe
in the root of the folder. - Execute
pip install -r extra/win-requirements.txt
to install python dependencies. (Might needpacman -S mingw-w64-x86_64-rust
) - Compile needed Tauon modules using
bash compile-phazor.sh
. - (optional) Compile translations using
python compile-translations.py
. - (optional) Add recommended fonts: In source directory, create a directory named
fonts
, and place Noto Sans font files in there. Easiest way to get these is to copy the folder from an existing Tauon installation. - (optional) Build the SMTC module (needed for media keys to work). (you can also grab this from an existing installation if you're lazy, the code doesn't change often):
- Install Visual Studio
- Open
src/smtc/TauonSMTC.sln
- Select the release configuration and build.
- From the build directory copy
TauonSMTC.dll
to/lib
.
- You should now be able to run using
python tauon.py
. To package into an exe:bash win-build.sh
, then the resulting build will be in thedist
directory.