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": { "#1": {
"0409": { "0409": {
"identity": { "identity": {
"name": "", "name": "ZeroBot-Plugin",
"version": "" "version": "%s"
}, },
"description": "", "description": "",
"minimum-os": "vista", "minimum-os": "vista",
@ -64,7 +64,7 @@ const js = `{
"LegalTrademarks": "", "LegalTrademarks": "",
"OriginalFilename": "ZBP.EXE", "OriginalFilename": "ZBP.EXE",
"PrivateBuild": "", "PrivateBuild": "",
"ProductName": "", "ProductName": "ZeroBot-Plugin",
"ProductVersion": "%s", "ProductVersion": "%s",
"SpecialBuild": "" "SpecialBuild": ""
} }
@ -96,7 +96,7 @@ func main() {
panic(err) panic(err)
} }
fv := commitcnt.String()[:commitcnt.Len()-1] 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 { if err != nil {
panic(err) panic(err)
} }

View File

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