-
-
Notifications
You must be signed in to change notification settings - Fork 100
Building for Windows
Martin edited this page Dec 27, 2024
·
52 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 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.txtto install required dependencies - (optional) Download (or compile:
cargo install librespot) and placelibrespot.exein the root of the folder - (optional) Download (or compile as per instructions in
extra/TaskbarLib.idl) and placeTaskbarLib.tlbin the root of the folder - Execute
pip install -r requirements.txtto install python dependencies - Compile needed Tauon modules using
./run.shand 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) Download or 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.dllto/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.shand select Windows Build, then the resulting build will be in thedistdirectory.
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.