mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 10:22:50 +08:00
@@ -8,17 +8,25 @@ QQ group: 621035845
|
|||||||
|
|
||||||
## build
|
## build
|
||||||
|
|
||||||
|
|
||||||
|
> outdated, please refer to workflow file
|
||||||
|
|
||||||
```
|
```
|
||||||
go build -o AynaLivePlayer.exe -ldflags -H=windowsgui app/gui/main.go
|
go build -o AynaLivePlayer.exe -ldflags -H=windowsgui app/gui/main.go
|
||||||
```
|
```
|
||||||
|
|
||||||
## packaging
|
## packaging
|
||||||
|
|
||||||
|
> outdated, please refer to workflow file
|
||||||
|
|
||||||
```
|
```
|
||||||
fyne package --src path_to_gui --exe AynaLivePlayer.exe --appVersion 0.8.4 --icon path_to_icon
|
fyne package --src path_to_gui --exe AynaLivePlayer.exe --appVersion 0.8.4 --icon path_to_icon
|
||||||
```
|
```
|
||||||
|
|
||||||
## Windows build guide
|
## Windows build guide
|
||||||
|
|
||||||
|
> outdated, please refer to workflow file
|
||||||
|
|
||||||
1. install golang [link](https://go.dev/doc/install)
|
1. install golang [link](https://go.dev/doc/install)
|
||||||
2. install chocolatey [link](https://chocolatey.org/install)
|
2. install chocolatey [link](https://chocolatey.org/install)
|
||||||
3. install required packages
|
3. install required packages
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import (
|
|||||||
"AynaLivePlayer/global"
|
"AynaLivePlayer/global"
|
||||||
"AynaLivePlayer/pkg/config"
|
"AynaLivePlayer/pkg/config"
|
||||||
"github.com/AynaLivePlayer/miaosic"
|
"github.com/AynaLivePlayer/miaosic"
|
||||||
//_ "github.com/AynaLivePlayer/miaosic/providers/bilibili"
|
|
||||||
_ "github.com/AynaLivePlayer/miaosic/providers/bilivideo"
|
_ "github.com/AynaLivePlayer/miaosic/providers/bilivideo"
|
||||||
"github.com/AynaLivePlayer/miaosic/providers/kugou"
|
"github.com/AynaLivePlayer/miaosic/providers/kugou"
|
||||||
_ "github.com/AynaLivePlayer/miaosic/providers/kuwo"
|
_ "github.com/AynaLivePlayer/miaosic/providers/kuwo"
|
||||||
@@ -34,8 +33,11 @@ var sourceCfg = &_sourceConfig{
|
|||||||
|
|
||||||
func Initialize() {
|
func Initialize() {
|
||||||
config.LoadConfig(sourceCfg)
|
config.LoadConfig(sourceCfg)
|
||||||
miaosic.RegisterProvider(local.NewLocal(sourceCfg.LocalSourcePath))
|
|
||||||
kugou.UseInstrumental()
|
kugou.UseInstrumental()
|
||||||
|
if config.General.DistributionChannel != "github" {
|
||||||
|
miaosic.UnregisterAllProvider()
|
||||||
|
}
|
||||||
|
miaosic.RegisterProvider(local.NewLocal(sourceCfg.LocalSourcePath))
|
||||||
|
|
||||||
global.EventManager.CallA(
|
global.EventManager.CallA(
|
||||||
events.MediaProviderUpdate, events.MediaProviderUpdateEvent{
|
events.MediaProviderUpdate, events.MediaProviderUpdateEvent{
|
||||||
|
|||||||
@@ -2,18 +2,18 @@ package config
|
|||||||
|
|
||||||
type _GeneralConfig struct {
|
type _GeneralConfig struct {
|
||||||
BaseConfig
|
BaseConfig
|
||||||
Width float32
|
Width float32
|
||||||
Height float32
|
Height float32
|
||||||
Language string
|
Language string
|
||||||
InfoApiServer string
|
InfoApiServer string
|
||||||
AutoCheckUpdate bool
|
AutoCheckUpdate bool
|
||||||
ShowSystemTray bool
|
ShowSystemTray bool
|
||||||
PlayNextOnFail bool
|
PlayNextOnFail bool
|
||||||
UseSystemPlaylist bool
|
UseSystemPlaylist bool
|
||||||
FixedSize bool
|
FixedSize bool
|
||||||
EnableSMC bool // enable system media control
|
EnableSMC bool // enable system media control
|
||||||
CustomFonts string // use custom fonts, under ./assets file
|
CustomFonts string // use custom fonts, under ./assets file
|
||||||
|
DistributionChannel string // app distribution channel, default fanfan
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *_GeneralConfig) Name() string {
|
func (c *_GeneralConfig) Name() string {
|
||||||
@@ -21,15 +21,16 @@ func (c *_GeneralConfig) Name() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var General = &_GeneralConfig{
|
var General = &_GeneralConfig{
|
||||||
Language: "zh-CN",
|
Language: "zh-CN",
|
||||||
ShowSystemTray: false,
|
ShowSystemTray: false,
|
||||||
InfoApiServer: "http://localhost:9090",
|
InfoApiServer: "http://localhost:9090",
|
||||||
AutoCheckUpdate: true,
|
AutoCheckUpdate: true,
|
||||||
Width: 960,
|
Width: 960,
|
||||||
Height: 480,
|
Height: 480,
|
||||||
PlayNextOnFail: false,
|
PlayNextOnFail: false,
|
||||||
UseSystemPlaylist: true,
|
UseSystemPlaylist: true,
|
||||||
FixedSize: true,
|
FixedSize: true,
|
||||||
EnableSMC: true,
|
EnableSMC: true,
|
||||||
CustomFonts: "",
|
CustomFonts: "",
|
||||||
|
DistributionChannel: "fanfan",
|
||||||
}
|
}
|
||||||
|
|||||||
1
todo.txt
1
todo.txt
@@ -16,6 +16,7 @@
|
|||||||
----
|
----
|
||||||
|
|
||||||
Finished
|
Finished
|
||||||
|
- 2024.07.30 : 由于相关法律法规问题,删除了第三方歌源
|
||||||
- 2024.07.24 : 修复网易云,修复wshub大小写问题
|
- 2024.07.24 : 修复网易云,修复wshub大小写问题
|
||||||
- 2024.07.07 : QQ音乐
|
- 2024.07.07 : QQ音乐
|
||||||
- 2024.06.30 : 添加vlc核心,修复若干bug,gui框架更新,修复点歌限制为1时可能出现的无法点歌的问题
|
- 2024.06.30 : 添加vlc核心,修复若干bug,gui框架更新,修复点歌限制为1时可能出现的无法点歌的问题
|
||||||
|
|||||||
Reference in New Issue
Block a user