Refine Go runtime behavior and log handling
build-windows-exe / build (push) Failing after 48s

This commit is contained in:
every_holiday committed 2026-06-24 01:53:24 +09:00
1 parent b34c2fafb4
commit 72aa10de46
10 files changed
+891 -3

No files matched your search

@@ -0,0 +1,16 @@
package common
import (
"os"
"path/filepath"
)
func RuntimeBaseDir() string {
exe, err := os.Executable()
if err == nil {
return filepath.Dir(exe)
}
return "."
}
func RootDir() string { return RuntimeBaseDir() }