2022-10-04 06:02:55 -07:00
|
|
|
//go:build !next
|
2022-04-26 10:50:09 -07:00
|
|
|
|
2019-06-10 01:33:19 -07:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2021-05-21 04:55:42 -07:00
|
|
|
"embed"
|
2024-04-02 08:43:24 -07:00
|
|
|
// Embed tzdata in binary.
|
|
|
|
//
|
|
|
|
// See https://github.com/AdguardTeam/AdGuardHome/issues/6758
|
|
|
|
_ "time/tzdata"
|
2021-05-21 04:55:42 -07:00
|
|
|
|
2020-10-30 03:32:02 -07:00
|
|
|
"github.com/AdguardTeam/AdGuardHome/internal/home"
|
2019-06-10 01:33:19 -07:00
|
|
|
)
|
|
|
|
|
2021-12-16 10:54:59 -07:00
|
|
|
// Embed the prebuilt client here since we strive to keep .go files inside the
|
|
|
|
// internal directory and the embed package is unable to embed files located
|
|
|
|
// outside of the same or underlying directory.
|
|
|
|
|
2023-01-23 02:47:59 -07:00
|
|
|
//go:embed build
|
2021-05-21 04:55:42 -07:00
|
|
|
var clientBuildFS embed.FS
|
|
|
|
|
2019-06-10 01:33:19 -07:00
|
|
|
func main() {
|
2021-05-21 04:55:42 -07:00
|
|
|
home.Main(clientBuildFS)
|
2019-06-10 01:33:19 -07:00
|
|
|
}
|