chore: import upstream snapshot with attribution
Deploy to GitHub Pages / deploy (push) Failing after 0s
CI / go (push) Has been cancelled
CI / build (darwin, macos-14) (push) Has been cancelled
CI / build (windows, windows-2025) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 12:31:13 +08:00
commit ead81af521
414 changed files with 73946 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
//go:build windows
package luaplugin
import "os"
func minimalExecEnv() []string {
home := homeEnv()
env := []string{
"PATH=" + os.Getenv("PATH"),
"HOME=" + home,
"USERPROFILE=" + home,
}
// Pass through the Windows variables subprocesses commonly need; skip
// any that are unset.
for _, key := range []string{"APPDATA", "LOCALAPPDATA", "ComSpec", "PATHEXT", "SystemRoot", "WINDIR", "TEMP", "TMP"} {
if v := os.Getenv(key); v != "" {
env = append(env, key+"="+v)
}
}
return env
}