chore: init bj_power monorepo (dashboard/mes/wms/wms_client/workstation), clear subproject git metadata and align naming to folder names
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/ying32/govcl/vcl"
|
||||
|
||||
"bj_power_wms/internal/autostart"
|
||||
"bj_power_wms/internal/config"
|
||||
"bj_power_wms/internal/ui"
|
||||
)
|
||||
|
||||
const AppName = "spherical_mill_gui"
|
||||
|
||||
func main() {
|
||||
if exe, err := os.Executable(); err == nil {
|
||||
if dir := filepath.Dir(exe); dir != "" {
|
||||
_ = os.Chdir(dir)
|
||||
}
|
||||
}
|
||||
|
||||
cfg, err := config.Load("config.json")
|
||||
if err != nil {
|
||||
log.Fatalf("åŠ è½½é…�置失败: %v", err)
|
||||
}
|
||||
|
||||
// 自动创建桌�快�方�
|
||||
_ = autostart.CreateDesktopShortcut("�分�)
|
||||
|
||||
ui.InitForm(cfg, AppName)
|
||||
|
||||
vcl.Application.Initialize()
|
||||
vcl.Application.SetMainFormOnTaskBar(true)
|
||||
vcl.Application.CreateForm(&ui.MainFormPtr)
|
||||
vcl.Application.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user