license: embed license in executable

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-07-16 22:07:40 +09:00
parent 09507a541b
commit 7e6eb82195
4 changed files with 37 additions and 6 deletions

View File

@@ -16,6 +16,13 @@ import (
var Version = "impure"
func tryVersion() {
if printVersion {
fmt.Println(Version)
os.Exit(0)
}
}
var (
ego *user.User
uid int
@@ -42,7 +49,6 @@ const (
func main() {
flag.Parse()
tryLauncher()
copyArgs()
if u, err := strconv.Atoi(ego.Uid); err != nil {