move Version and Commit to core
This commit is contained in:
+4
-2
@@ -156,12 +156,14 @@ func (d *FullData) WriteFeed(dataPath string) error {
|
||||
}
|
||||
}
|
||||
|
||||
rawPage += `
|
||||
rawPage += fmt.Sprintf(`
|
||||
|
||||
---
|
||||
|
||||
=> https://git.nytpu.com/comitium/about/ aggregated using comitium
|
||||
`
|
||||
`,
|
||||
Version,
|
||||
)
|
||||
|
||||
err := ioutil.WriteFile(path, []byte(rawPage), 0666)
|
||||
if err != nil {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// Copyright (C) 2021 nytpu
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
// For more license details, see LICENSE or <https://www.gnu.org/licenses/agpl-3.0.html>.
|
||||
|
||||
package core
|
||||
|
||||
// These variables are set by the linker. They can be modified in the Makefile.
|
||||
var (
|
||||
Version = "Unknown"
|
||||
Commit = "Unknown"
|
||||
)
|
||||
Reference in New Issue
Block a user