Skip to content

Building for Windows

James edited this page Sep 23, 2023 · 32 revisions

Tauon for Windows can be built using MSYS2

  1. Go to http://www.msys2.org/ and download the x86_64 installer.
  2. Follow the instructions on the page for setting up the basic environment.
  3. Run C:\msys64\mingw64.exe - a terminal window should pop up.
  4. Update by running pacman -Syu. (You may need to reopen mingw64.exe after this)
  5. Update again and install git pacman -Syu git.
  6. Clone Tauon repo git clone https://github.com/Taiko2k/TauonMusicBox.git --recursive
  7. cd TauonMusicBox
  8. Execute pacman -S - < extra/msyspac.txt to install required dependencies.
  9. Download and place librespot.exe in the root of the folder.
  10. Execute pip install -r extra/win-requirements.txt to install python dependencies. (Might need pacman -S mingw-w64-x86_64-rust)
  11. Compile needed Tauon modules using bash compile-phazor.sh.
  12. (optional) Compile translations using python compile-translations.py.
  13. (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.
  14. (optional) Build the SMTC module (needed for media keys to work):
    1. Install Visual Studio
    2. Open src/smtc/TauonSMTC.sln
    3. Select the release configuration and build.
    4. From the build directory copy TauonSMTC.dll to /lib.
  15. 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 the dist directory.
Clone this wiki locally