fix winres

This commit is contained in:
源文雨 2023-03-01 14:49:34 +08:00
parent 86296a28df
commit 1bceaa52ff
2 changed files with 11 additions and 11 deletions

View File

@ -24,8 +24,8 @@ const js = `{
"#1": {
"0409": {
"identity": {
"name": "",
"version": ""
"name": "ZeroBot-Plugin",
"version": "%s"
},
"description": "",
"minimum-os": "vista",
@ -64,7 +64,7 @@ const js = `{
"LegalTrademarks": "",
"OriginalFilename": "ZBP.EXE",
"PrivateBuild": "",
"ProductName": "",
"ProductName": "ZeroBot-Plugin",
"ProductVersion": "%s",
"SpecialBuild": ""
}
@ -96,7 +96,7 @@ func main() {
panic(err)
}
fv := commitcnt.String()[:commitcnt.Len()-1]
_, err = fmt.Fprintf(f, js, fv, banner.Version, time.Now().Format(timeformat), fv, banner.Copyright, banner.Version)
_, err = fmt.Fprintf(f, js, fv, fv, banner.Version, time.Now().Format(timeformat), fv, banner.Copyright+". All Rights Reserved.", banner.Version)
if err != nil {
panic(err)
}

View File

@ -11,8 +11,8 @@
"#1": {
"0409": {
"identity": {
"name": "",
"version": ""
"name": "ZeroBot-Plugin",
"version": "1.7.0.1718"
},
"description": "",
"minimum-os": "vista",
@ -36,22 +36,22 @@
"#1": {
"0000": {
"fixed": {
"file_version": "1.7.0.1717",
"file_version": "1.7.0.1718",
"product_version": "v1.7.0-beta1",
"timestamp": "2023-03-01T14:34:01+08:00"
"timestamp": "2023-03-01T14:46:48+08:00"
},
"info": {
"0409": {
"Comments": "OneBot plugins based on ZeroBot",
"CompanyName": "FloatTech",
"FileDescription": "https://github.com/FloatTech/ZeroBot-Plugin",
"FileVersion": "1.7.0.1717",
"FileVersion": "1.7.0.1718",
"InternalName": "",
"LegalCopyright": "© 2020 - 2023 FloatTech",
"LegalCopyright": "© 2020 - 2023 FloatTech. All Rights Reserved.",
"LegalTrademarks": "",
"OriginalFilename": "ZBP.EXE",
"PrivateBuild": "",
"ProductName": "",
"ProductName": "ZeroBot-Plugin",
"ProductVersion": "v1.7.0-beta1",
"SpecialBuild": ""
}