devgianlu / go-librespot

Yet another open source Spotify client, written in Go.
GNU General Public License v3.0
52 stars 7 forks source link

feat: Windows support #4

Open devgianlu opened 9 months ago

devgianlu commented 9 months ago

To build, inside a golang:1.20 container:

apt update
apt install wget xz-utils make gcc-mingw-w64-x86-64

export CC=x86_64-w64-mingw32-gcc

cd /tmp
wget https://downloads.xiph.org/releases/ogg/libogg-1.3.5.tar.xz
tar -xvf libogg-1.3.5.tar.xz
cd libogg-1.3.5
./configure --host=x86_64-w64-mingw32
make
make install

cd /tmp
wget https://downloads.xiph.org/releases/vorbis/libvorbis-1.3.7.tar.xz
tar -xvf libvorbis-1.3.7.tar.xz
cd libvorbis-1.3.7
./configure --host=x86_64-w64-mingw32
make
make install

export GOOS=windows

cd /path/to/go-librespot
go build ./cmd/daemon/
SeriousM commented 2 days ago

Hi @devgianlu, are there any updates making this a reality?

devgianlu commented 7 hours ago

Hi @devgianlu, are there any updates making this a reality?

@SeriousM This has been low priority from the beginning considering that go-librespot isn't really something made for Windows. I may come to it at some point, but not really sure when.