INNER CODE UNIT · Go

main

openocta/openocta · src/main.go:48

func main() {
	// 捕获 panic 并写入日志
	defer func() {
		if r := recover(); r != nil {
			msg := fmt.Sprintf("panic: %v", r)
			writeStartupLog(msg)
			os.Exit(1)
		}
	}()

	// 从 .dmg 首次启动时提示安装到「应用程序」(macOS);若已安装并重启则直接退出本实例
	desktop.MaybePromptInstallFromDMG()

	appinstance.KillOtherOpenOctaProcesses()

	// Start gateway in goroutine before creating window
	srv, err := desktop.StartGateway()
	if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…