-
-
Notifications
You must be signed in to change notification settings - Fork 73
Building for Windows
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 and install git by running
pacman -Syu git --noconfirm
- You may need to reopen mingw64.exe after this -
Clone Tauon repo
git clone https://github.com/Taiko2k/TauonMusicBox.git --recursive
-
cd TauonMusicBox
-
Execute
pacman -S --needed --noconfirm - < extra/msyspac.txt
to install required dependencies -
(optional) Download (or compile:
cargo install librespot
) and placelibrespot.exe
in the root of the folder -
(optional) Download (or compile as per instructions in
extra/TaskbarLib.idl
) and placeTaskbarLib.tlb
in the root of the folder -
Execute
pip install -r requirements.txt
to install python dependencies -
Compile needed Tauon modules using
./run.sh
and select Compile Phazor -
(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, which is needed for the media keys to work.
You can also grab this from an existing installation if you're lazy, the code doesn't change often:- Install via Visual studio:
- Install Visual Studio
- Open
src/smtc/TauonSMTC.sln
- Select the release configuration and build
- From the build directory copy
TauonSMTC.dll
to/lib
- Install via MS Build Tools in cmd.exe (MSBuild.exe):
- Install MS Build Tools
- Open cmd.exe and set the PATH variable to the tools:
set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin
- Run
msbuild.exe /p:Configuration=Release TauonSMTC.sln
- Install via Visual studio:
-
You should now be able to run using
python src/tauon/__main__.py
To package into an exe:./run.sh
and select Windows Build, then the resulting build will be in thedist
directory.
If you run into issues and think these instructions are wrong/out-of-date, you can check what the CI action does and compare - open an Issue if it does turn out to be this way.