fix IsNew() func, include LICENSE in goreleaser

pull/75/head
Harvey Tindall 4 years ago
parent f685582e1a
commit 21490faa9e
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -17,6 +17,7 @@ before:
- cp node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 data/web/css/
- cp -r html data/
- cp -r lang data/
- cp LICENSE data/
- python3 scripts/enumerate_config.py -i config/config-base.json -o data/config-base.json
- python3 scripts/generate_ini.py -i config/config-base.json -o data/config-default.ini
- python3 scripts/compile_mjml.py -o data/

@ -124,7 +124,6 @@ type Updater struct {
func newUpdater(buildroneURL, namespace, repo, version, commit, buildType string) *Updater {
bType := off
fmt.Println("BT", buildType)
tag := ""
switch buildType {
case "binary":
@ -202,7 +201,7 @@ func (ud *Updater) GetTag() (Tag, int, error) {
}
func (t *Tag) IsNew() bool {
return t.Version == version
return t.Version != version
}
func (ud *Updater) getRelease() (release GHRelease, status int, err error) {

@ -72,6 +72,7 @@ func (app *appContext) AdminPage(gc *gin.Context) {
var license string
l, err := fs.ReadFile(localFS, "LICENSE")
if err != nil {
app.debug.Printf("Failed to load LICENSE: %s", err)
license = ""
}
license = string(l)

Loading…
Cancel
Save