@@ -18,7 +18,7 @@ builds:
18
18
goos :
19
19
- linux
20
20
ldflags :
21
- - -s -w -X github.com/go-musicfox/spotifox/internal/constants .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/constants .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
21
+ - -s -w -X github.com/go-musicfox/spotifox/internal/types .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
22
22
- id : spotifox-linux-arm64
23
23
main : ./cmd/spotifox.go
24
24
binary : spotifox
@@ -34,7 +34,7 @@ builds:
34
34
- LDFLAGS=-L/usr/aarch64-linux-gnu/lib:$LDFLAGS
35
35
- PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/lib/pkgconfig:$PKG_CONFIG_PATH
36
36
ldflags :
37
- - -s -w -X github.com/go-musicfox/spotifox/internal/constants .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/constants .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
37
+ - -s -w -X github.com/go-musicfox/spotifox/internal/types .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
38
38
- id : spotifox-linux-arm
39
39
main : ./cmd/spotifox.go
40
40
binary : spotifox
@@ -50,7 +50,7 @@ builds:
50
50
- LDFLAGS=-L/usr/arm-linux-gnueabi/lib:$LDFLAGS
51
51
- PKG_CONFIG_PATH=/usr/arm-linux-gnueabi/lib/pkgconfig:$PKG_CONFIG_PATH
52
52
ldflags :
53
- - -s -w -X github.com/go-musicfox/spotifox/internal/constants .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/constants .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
53
+ - -s -w -X github.com/go-musicfox/spotifox/internal/types .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
54
54
- id : spotifox-windows-amd64
55
55
main : ./cmd/spotifox.go
56
56
binary : spotifox
@@ -59,7 +59,7 @@ builds:
59
59
goos :
60
60
- windows
61
61
ldflags :
62
- - -s -w -X github.com/go-musicfox/spotifox/internal/constants .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/constants .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
62
+ - -s -w -X github.com/go-musicfox/spotifox/internal/types .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
63
63
env :
64
64
- CC=/usr/local/mingw/bin/x86_64-w64-mingw32-gcc
65
65
- CXX=/usr/local/mingw/bin/x86_64-w64-mingw32-g++
@@ -74,7 +74,7 @@ builds:
74
74
goos :
75
75
- windows
76
76
ldflags :
77
- - -s -w -X github.com/go-musicfox/spotifox/internal/constants .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/constants .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
77
+ - -s -w -X github.com/go-musicfox/spotifox/internal/types .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
78
78
env :
79
79
- CC=/usr/local/mingw/bin/aarch64-w64-mingw32-gcc
80
80
- CXX=/usr/local/mingw/bin/aarch64-w64-mingw32-g++
@@ -89,7 +89,7 @@ builds:
89
89
goos :
90
90
- darwin
91
91
ldflags :
92
- - -s -w -X github.com/go-musicfox/spotifox/internal/constants .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/constants .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
92
+ - -s -w -X github.com/go-musicfox/spotifox/internal/types .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
93
93
env :
94
94
- CC=oa64-clang
95
95
- CXX=oa64-clang++
@@ -101,7 +101,7 @@ builds:
101
101
goos :
102
102
- darwin
103
103
ldflags :
104
- - -s -w -X github.com/go-musicfox/spotifox/internal/constants .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/constants .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/constants .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
104
+ - -s -w -X github.com/go-musicfox/spotifox/internal/types .AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types .LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types .LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types .SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
105
105
env :
106
106
- CC=o64-clang
107
107
- CXX=o64-clang++
0 commit comments