2019-06-11 01:00:45 -05:00
|
|
|
package main
|
|
|
|
|
2019-06-13 21:31:13 -05:00
|
|
|
// This should build the control panel correctly on each platform
|
2019-06-11 01:00:45 -05:00
|
|
|
|
2021-08-09 00:45:36 -05:00
|
|
|
// Then, upload the binaries to mirrors.wit.org/cloud/control-panel
|
2019-06-11 01:00:45 -05:00
|
|
|
|
|
|
|
import "log"
|
2019-06-14 12:48:14 -05:00
|
|
|
//import "fmt"
|
|
|
|
//import "time"
|
|
|
|
//import "os/user"
|
2019-06-11 01:00:45 -05:00
|
|
|
|
2021-08-09 00:45:36 -05:00
|
|
|
import "git.wit.org/wit/shell"
|
|
|
|
import build "git.wit.org/wit/cloud-control-panel-build"
|
2019-06-11 01:00:45 -05:00
|
|
|
|
|
|
|
var filename string
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
shell.Quiet(false)
|
2019-06-14 07:18:13 -05:00
|
|
|
|
2019-06-14 12:48:14 -05:00
|
|
|
md5sum := build.Build()
|
2019-06-14 07:18:13 -05:00
|
|
|
log.Println("\tmd5sum =", md5sum)
|
|
|
|
|
|
|
|
if (md5sum == "") {
|
|
|
|
log.Println("\tBUILD FAILED")
|
|
|
|
return
|
|
|
|
}
|
2019-06-11 01:00:45 -05:00
|
|
|
}
|