added osutils.IsProbablyGoRun

This commit is contained in:
Gani Georgiev
2025-09-06 18:14:20 +03:00
parent a088cf6379
commit 40f2ba731c
6 changed files with 60 additions and 8 deletions

View File

@@ -88,8 +88,7 @@ func findOrCreateInstallerSuperuser(app core.App) (*core.Record, error) {
}
func executablePath() string {
// most likely ran with go run
if strings.HasPrefix(os.Args[0], os.TempDir()) {
if osutils.IsProbablyGoRun() {
return "go run ."
}