build: rename build tag miniwinsvc -> minwinsvc

This was in fact a typo.
pull/5932/head
ᴜɴᴋɴᴡᴏɴ 2020-02-20 16:33:03 +08:00
parent 1c09373b4f
commit 2e819a360c
No known key found for this signature in database
GPG Key ID: B43718D76E30A238
6 changed files with 17 additions and 5 deletions

View File

@ -16,6 +16,7 @@ All notable changes to Gogs are documented in this file.
- All assets are now embedded into binary and served from memory by default. Set `[server] LOAD_ASSETS_FROM_DISK = true` to load them from disk. [#5920](https://github.com/gogs/gogs/pull/5920)
- Application and Go versions are removed from page footer and only show in the admin dashboard.
- Build tag for running as Windows Service has been changed from `miniwinsvc` to `minwinsvc`.
### Fixed

View File

@ -13,4 +13,4 @@ deploy: false
install:
- go version
- go env
- go build -v
- go build -tags "minwinsvc" -v

View File

@ -81,7 +81,7 @@ func GlobalInit() {
if db.EnableSQLite3 {
log.Info("SQLite3 is supported")
}
if setting.SupportMiniWinService {
if setting.SupportWindowsService() {
log.Info("Builtin Windows Service is supported")
}
if setting.LoadAssetsFromDisk {

View File

@ -0,0 +1,12 @@
// Copyright 2020 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package setting
var supportWindowsService bool
// SupportWindowsService returns true if running as Windows Service is supported.
func SupportWindowsService() bool {
return supportWindowsService
}

View File

@ -1,4 +1,4 @@
// +build miniwinsvc
// +build minwinsvc
// Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
@ -11,5 +11,5 @@ import (
)
func init() {
SupportMiniWinService = true
supportWindowsService = true
}

View File

@ -314,7 +314,6 @@ var (
// Other settings
ShowFooterBranding bool
ShowFooterTemplateLoadTime bool
SupportMiniWinService bool
// Global setting objects
Cfg *ini.File