[PR #4] feat: Windows support #178

Open
opened 2026-02-28 14:26:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/devgianlu/go-librespot/pull/4
Author: @devgianlu
Created: 10/13/2023
Status: 🔄 Open

Base: masterHead: windows


📝 Commits (3)

  • 7febc74 Initial Windows output driver implementation
  • b4affdc CI: Build Windows binaries
  • 805fb7d Fix build

📊 Changes

4 files changed (+466 additions, -5 deletions)

View changed files

📝 .github/workflows/release.yml (+20 -0)
📝 go.mod (+3 -1)
📝 go.sum (+5 -4)
output/driver_windows.go (+438 -0)

📄 Description

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/

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/devgianlu/go-librespot/pull/4 **Author:** [@devgianlu](https://github.com/devgianlu) **Created:** 10/13/2023 **Status:** 🔄 Open **Base:** `master` ← **Head:** `windows` --- ### 📝 Commits (3) - [`7febc74`](https://github.com/devgianlu/go-librespot/commit/7febc748506c5688cbe5d1656d0e0a014bd92db5) Initial Windows output driver implementation - [`b4affdc`](https://github.com/devgianlu/go-librespot/commit/b4affdc68fcc8f7351b7a42091a96766ef713c52) CI: Build Windows binaries - [`805fb7d`](https://github.com/devgianlu/go-librespot/commit/805fb7d99dffe30e49ad8e647479922f23e706ba) Fix build ### 📊 Changes **4 files changed** (+466 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/release.yml` (+20 -0) 📝 `go.mod` (+3 -1) 📝 `go.sum` (+5 -4) ➕ `output/driver_windows.go` (+438 -0) </details> ### 📄 Description To build, inside a `golang:1.22` container: ```shell 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/ ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#178
No description provided.