add dev version

This commit is contained in:
aynakeya
2025-08-01 21:15:10 +08:00
parent 1e538646f4
commit 575e1863fd
3 changed files with 27 additions and 3 deletions

View File

@@ -2,14 +2,12 @@ package gui
import ( import (
"AynaLivePlayer/core/events" "AynaLivePlayer/core/events"
"AynaLivePlayer/core/model"
"AynaLivePlayer/global" "AynaLivePlayer/global"
"AynaLivePlayer/gui/gutil" "AynaLivePlayer/gui/gutil"
"AynaLivePlayer/pkg/config" "AynaLivePlayer/pkg/config"
"AynaLivePlayer/pkg/event" "AynaLivePlayer/pkg/event"
"AynaLivePlayer/pkg/i18n" "AynaLivePlayer/pkg/i18n"
"AynaLivePlayer/resource" "AynaLivePlayer/resource"
"fmt"
"fyne.io/fyne/v2" "fyne.io/fyne/v2"
"fyne.io/fyne/v2/app" "fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container" "fyne.io/fyne/v2/container"
@@ -40,7 +38,7 @@ func Initialize() {
} }
App = app.NewWithID(config.ProgramName) App = app.NewWithID(config.ProgramName)
//App.Settings().SetTheme(&myTheme{}) //App.Settings().SetTheme(&myTheme{})
MainWindow = App.NewWindow(fmt.Sprintf("%s Ver %s", config.ProgramName, model.Version(config.Version))) MainWindow = App.NewWindow(getAppTitle())
tabs := container.NewAppTabs( tabs := container.NewAppTabs(
container.NewTabItem(i18n.T("gui.tab.player"), container.NewTabItem(i18n.T("gui.tab.player"),

13
gui/gui_dev.go Normal file
View File

@@ -0,0 +1,13 @@
//go:build !nosource
package gui
import (
"AynaLivePlayer/core/model"
"AynaLivePlayer/pkg/config"
"fmt"
)
func getAppTitle() string {
return fmt.Sprintf("%s Ver %s - 正式版", config.ProgramName, model.Version(config.Version))
}

13
gui/gui_stable.go Normal file
View File

@@ -0,0 +1,13 @@
//go:build nosource
package gui
import (
"AynaLivePlayer/core/model"
"AynaLivePlayer/pkg/config"
"fmt"
)
func getAppTitle() string {
return fmt.Sprintf("%s Ver %s - 测试版 仅供开发人员测试使用 请勿用于其他用途", config.ProgramName, model.Version(config.Version))
}