installation system soft implemented

This commit is contained in:
2025-11-01 16:39:01 -03:00
parent 4c88ec3bc2
commit 52ecacc4fe
11 changed files with 450 additions and 57 deletions

View File

@@ -24,11 +24,15 @@ return {
},
build = function()
-- os.setenv("GOPATH", pathjoin(SOURCESDIR, "gopath"))
os.chdir(pathjoin(SOURCESDIR, "utctimerightnow"))
os.execute('go build -trimpath -ldflags="-s -w" -o utctimerightnow main.go')
os.chmod(utctimerightnow, 0777)
end,
install = function() -- required
print("goku")
os.copy(pathjoin(SOURCESDIR, "utctimerightnow", "utctimerightnow"), pathjoin(PACKETDIR, BIN_DIR, "utctimerightnow"))
os.copy(pathjoin(SOURCESDIR, "utctimerightnow", "LICENSE"), pathjoin(PACKETDIR, "/usr/share/licenses/utctimerightnow/LICENSE"))
end,
}