File tree Expand file tree Collapse file tree 7 files changed +16
-4
lines changed Expand file tree Collapse file tree 7 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
- Copyright (c) 2016-2022 Chad Weimer
1
+ Copyright (c) 2016-2024 Chad Weimer
2
2
3
3
Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ ifdef BUILD_VERSION
7
7
ARCHIVE_SUFFIX:=-$(BUILD_VERSION)
8
8
endif
9
9
10
+ COPYRIGHT := Copyright © 2016-$(shell date +% Y) Chad Weimer
11
+
10
12
BUILD_DIR =build
11
13
BUILD_LIN_AMD64_DIR =$(BUILD_DIR ) /linux/amd64
12
14
BUILD_LIN_ARM_DIR =$(BUILD_DIR ) /linux/arm/v7
@@ -26,7 +28,7 @@ GO_MODULE_NAME ?= github.com/$(REPO_NAME)
26
28
GOOS := linux
27
29
GOARCH := amd64
28
30
GO_ENV=GOOS =$(GOOS ) GOARCH=$(GOARCH ) CGO_ENABLED=0
29
- GO_LD_FLAGS =-ldflags " -X ' $(GO_MODULE_NAME ) /metadata.BuildVersion=$(BUILD_VERSION ) '"
31
+ GO_LD_FLAGS =-ldflags ' -X " $(GO_MODULE_NAME ) /metadata.BuildVersion=$(BUILD_VERSION ) " -X " $( GO_MODULE_NAME ) /metadata.Copyright= $( COPYRIGHT ) "'
30
32
31
33
CONTAINER_REGISTRY ?= ghcr.io
32
34
Original file line number Diff line number Diff line change 9
9
10
10
func (apiHandler ) GetInfo (_ context.Context , _ GetInfoRequestObject ) (GetInfoResponseObject , error ) {
11
11
return GetInfo200JSONResponse {
12
- Version : & metadata .BuildVersion ,
12
+ Copyright : & metadata .Copyright ,
13
+ Version : & metadata .BuildVersion ,
13
14
}, nil
14
15
}
15
16
Original file line number Diff line number Diff line change
1
+ package metadata
2
+
3
+ // Copyright represents the application copyright information, if set during the build
4
+ var Copyright string
Original file line number Diff line number Diff line change @@ -59,8 +59,12 @@ components:
59
59
appInfo :
60
60
type : object
61
61
required :
62
+ - copyright
62
63
- version
63
64
properties :
65
+ copyright :
66
+ type : string
67
+ readOnly : true
64
68
version :
65
69
type : string
66
70
readOnly : true
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export class AppRoot {
94
94
</ ion-content >
95
95
96
96
< ion-footer color = "medium" class = "ion-text-center ion-padding" >
97
- < div class = "copyright" > GOMP: Go Meal Plannner { appConfig . info . version } . Copyright © 2016-2022 Chad Weimer </ div >
97
+ < div class = "copyright" > GOMP: Go Meal Plannner { appConfig . info . version } . { appConfig . info . copyright } </ div >
98
98
</ ion-footer >
99
99
</ ion-menu >
100
100
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ interface AppConfig {
8
8
9
9
const { state : appConfig } = createStore < AppConfig > ( {
10
10
info : {
11
+ copyright : 'Copyright © Chad Weimer' ,
11
12
version : '<Unknown>'
12
13
} ,
13
14
config : {
You can’t perform that action at this time.
0 commit comments