Skip to content

Conversation

devgianlu
Copy link
Owner

@devgianlu devgianlu commented Oct 13, 2023

To build, inside a golang:1.22 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/

@devgianlu devgianlu added the enhancement New feature or request label Oct 13, 2023
@devgianlu devgianlu changed the title Windows support feat: Windows support Oct 19, 2023
@SeriousM
Copy link

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

@devgianlu
Copy link
Owner Author

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.

@x528491x
Copy link

Could you set up a GitHub action to publish windows builds as well?

@devgianlu
Copy link
Owner Author

Could you set up a GitHub action to publish windows builds as well?

You can use the commands in the first comment, but there's not much to compile as this branch is very outdated.

@stronk-dev
Copy link
Contributor

Maybe it would be an option for Windows users to use wslg?

@devgianlu
Copy link
Owner Author

Maybe it would be an option for Windows users to use wslg?

@stronk-dev I have no idea how that would look, but it's certanely an option. My original idea was to support Windows natively because that was my main OS at the time.

@ManicQuinn
Copy link

Is there no plans currently to make this happen? I really needed it as recently my main PC blew and the 11 year old laptop I had on hand lags like crazy and spotify's client just kills..

@devgianlu
Copy link
Owner Author

Is there no plans currently to make this happen?

Not currently, but if anyone wants to give it a shot I'll happily review the PR and merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants