mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-10-06 19:59:42 +07:00
add upx as part of building step to shrink the size of binary files (#28)
This commit is contained in:
@@ -21,7 +21,12 @@ const (
|
||||
//go:embedded ../../build/sysroot/etc/casaos/user-service.conf.sample
|
||||
//var _userServiceConfigFileSample string
|
||||
|
||||
var _logger *Logger
|
||||
var (
|
||||
commit = "private build"
|
||||
date = "private build"
|
||||
|
||||
_logger *Logger
|
||||
)
|
||||
|
||||
// var _status *version.GlobalMigrationStatus
|
||||
|
||||
@@ -36,6 +41,9 @@ func main() {
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
println("git commit:", commit)
|
||||
println("build date:", date)
|
||||
|
||||
_logger = NewLogger()
|
||||
|
||||
if os.Getuid() != 0 {
|
||||
|
||||
Reference in New Issue
Block a user