- Install rustup.
- Install
GTK 3
dev packages:- macOS:
$ brew install gtk+3 $ brew install gnome-icon-theme
- Debian / Ubuntu:
$ sudo apt install libgtk-3-dev build-essential
- Windows:
- Install MSYS2.
- Install dev packages from
MSYS2
shell:$ pacman -S --needed base-devel mingw-w64-x86_64-toolchain $ pacman -S mingw-w64-x86_64-gtk3
- Edit environment variable:
- add
C:\msys64\mingw64\bin
toPath
. - add
C:\msys64\mingw64\lib
toGTK_LIB_DIR
.
- add
- Add toolchain target, open a
PowerShell
, and run:PS C:\> rustup target add x86_64-pc-windows-gnu
- Change toolchain target:
PS C:\> rustup default stable-x86_64-pc-windows-gnu
- Check default toolchain target:
PS C:\> rustup show ... stable-x86_64-pc-windows-gnu (default) stable-x86_64-pc-windows-msvc ...
- macOS:
- Clone this repo, and
cd
to repo directory. - Build app:
$ cargo build --release
- Run app:
- On Windows, open
target\release
directory, double clickspotifypi-control-panel.exe
. - On Linux or macOS, run
./target/release/spotifypi-control-panel
fromTerminal
.
- On Windows, open