mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-05 01:37:17 -05:00
26 lines
557 B
Go
26 lines
557 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2app"
|
|
)
|
|
|
|
// GitBranch is set by the CI build process to the name of the branch
|
|
//nolint:gochecknoglobals // This is filled in by the build system
|
|
var GitBranch string = "local"
|
|
|
|
// GitCommit is set by the CI build process to the commit hash
|
|
//nolint:gochecknoglobals // This is filled in by the build system
|
|
var GitCommit string = "build"
|
|
|
|
func main() {
|
|
log.SetFlags(log.Lshortfile)
|
|
|
|
instance := d2app.Create(GitBranch, GitCommit)
|
|
|
|
if err := instance.Run(); err != nil {
|
|
return
|
|
}
|
|
}
|