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
|
||||
|
||||
|
||||
> outdated, please refer to workflow file
|
||||
|
||||
```
|
||||
go build -o AynaLivePlayer.exe -ldflags -H=windowsgui app/gui/main.go
|
||||
```
|
||||
|
||||
## packaging
|
||||
|
||||
> outdated, please refer to workflow file
|
||||
|
||||
```
|
||||
fyne package --src path_to_gui --exe AynaLivePlayer.exe --appVersion 0.8.4 --icon path_to_icon
|
||||
```
|
||||
|
||||
## Windows build guide
|
||||
|
||||
> outdated, please refer to workflow file
|
||||
|
||||
1. install golang [link](https://go.dev/doc/install)
|
||||
2. install chocolatey [link](https://chocolatey.org/install)
|
||||
3. install required packages
|
||||
|
||||
@@ -5,7 +5,6 @@ import (
|
||||
"AynaLivePlayer/global"
|
||||
"AynaLivePlayer/pkg/config"
|
||||
"github.com/AynaLivePlayer/miaosic"
|
||||
//_ "github.com/AynaLivePlayer/miaosic/providers/bilibili"
|
||||
_ "github.com/AynaLivePlayer/miaosic/providers/bilivideo"
|
||||
"github.com/AynaLivePlayer/miaosic/providers/kugou"
|
||||
_ "github.com/AynaLivePlayer/miaosic/providers/kuwo"
|
||||
@@ -34,8 +33,11 @@ var sourceCfg = &_sourceConfig{
|
||||
|
||||
func Initialize() {
|
||||
config.LoadConfig(sourceCfg)
|
||||
miaosic.RegisterProvider(local.NewLocal(sourceCfg.LocalSourcePath))
|
||||
kugou.UseInstrumental()
|
||||
if config.General.DistributionChannel != "github" {
|
||||
miaosic.UnregisterAllProvider()
|
||||
}
|
||||
miaosic.RegisterProvider(local.NewLocal(sourceCfg.LocalSourcePath))
|
||||
|
||||
global.EventManager.CallA(
|
||||
events.MediaProviderUpdate, events.MediaProviderUpdateEvent{
|
||||
|
||||
@@ -13,7 +13,7 @@ type _GeneralConfig struct {
|
||||
FixedSize bool
|
||||
EnableSMC bool // enable system media control
|
||||
CustomFonts string // use custom fonts, under ./assets file
|
||||
|
||||
DistributionChannel string // app distribution channel, default fanfan
|
||||
}
|
||||
|
||||
func (c *_GeneralConfig) Name() string {
|
||||
@@ -32,4 +32,5 @@ var General = &_GeneralConfig{
|
||||
FixedSize: true,
|
||||
EnableSMC: true,
|
||||
CustomFonts: "",
|
||||
DistributionChannel: "fanfan",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user