2019-10-24 13:31:59 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
2020-06-30 16:36:48 +00:00
|
|
|
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2app"
|
2019-10-24 13:31:59 +00:00
|
|
|
)
|
|
|
|
|
2019-11-07 03:12:15 +00:00
|
|
|
// GitBranch is set by the CI build process to the name of the branch
|
2020-10-26 09:04:50 +00:00
|
|
|
//nolint:gochecknoglobals // This is filled in by the build system
|
2020-12-16 07:11:28 +00:00
|
|
|
var GitBranch string = "local"
|
2019-11-07 03:12:15 +00:00
|
|
|
|
|
|
|
// GitCommit is set by the CI build process to the commit hash
|
2020-10-26 09:04:50 +00:00
|
|
|
//nolint:gochecknoglobals // This is filled in by the build system
|
2020-12-16 07:11:28 +00:00
|
|
|
var GitCommit string = "build"
|
2019-10-24 13:31:59 +00:00
|
|
|
|
|
|
|
func main() {
|
2020-02-01 04:18:11 +00:00
|
|
|
log.SetFlags(log.Lshortfile)
|
|
|
|
|
2020-11-02 00:05:50 +00:00
|
|
|
instance := d2app.Create(GitBranch, GitCommit)
|
2020-07-11 15:24:04 +00:00
|
|
|
|
2020-11-02 00:05:50 +00:00
|
|
|
if err := instance.Run(); err != nil {
|
2020-10-29 01:02:12 +00:00
|
|
|
return
|
2020-07-08 13:16:16 +00:00
|
|
|
}
|
2020-06-23 02:17:54 +00:00
|
|
|
}
|