Skip to content

Commit 1bceaa5

Browse files
committed
fix winres
1 parent 86296a2 commit 1bceaa5

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

winres/gen/json.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const js = `{
2424
"#1": {
2525
"0409": {
2626
"identity": {
27-
"name": "",
28-
"version": ""
27+
"name": "ZeroBot-Plugin",
28+
"version": "%s"
2929
},
3030
"description": "",
3131
"minimum-os": "vista",
@@ -64,7 +64,7 @@ const js = `{
6464
"LegalTrademarks": "",
6565
"OriginalFilename": "ZBP.EXE",
6666
"PrivateBuild": "",
67-
"ProductName": "",
67+
"ProductName": "ZeroBot-Plugin",
6868
"ProductVersion": "%s",
6969
"SpecialBuild": ""
7070
}
@@ -96,7 +96,7 @@ func main() {
9696
panic(err)
9797
}
9898
fv := commitcnt.String()[:commitcnt.Len()-1]
99-
_, err = fmt.Fprintf(f, js, fv, banner.Version, time.Now().Format(timeformat), fv, banner.Copyright, banner.Version)
99+
_, err = fmt.Fprintf(f, js, fv, fv, banner.Version, time.Now().Format(timeformat), fv, banner.Copyright+". All Rights Reserved.", banner.Version)
100100
if err != nil {
101101
panic(err)
102102
}

winres/winres.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"#1": {
1212
"0409": {
1313
"identity": {
14-
"name": "",
15-
"version": ""
14+
"name": "ZeroBot-Plugin",
15+
"version": "1.7.0.1718"
1616
},
1717
"description": "",
1818
"minimum-os": "vista",
@@ -36,22 +36,22 @@
3636
"#1": {
3737
"0000": {
3838
"fixed": {
39-
"file_version": "1.7.0.1717",
39+
"file_version": "1.7.0.1718",
4040
"product_version": "v1.7.0-beta1",
41-
"timestamp": "2023-03-01T14:34:01+08:00"
41+
"timestamp": "2023-03-01T14:46:48+08:00"
4242
},
4343
"info": {
4444
"0409": {
4545
"Comments": "OneBot plugins based on ZeroBot",
4646
"CompanyName": "FloatTech",
4747
"FileDescription": "https://github.com/FloatTech/ZeroBot-Plugin",
48-
"FileVersion": "1.7.0.1717",
48+
"FileVersion": "1.7.0.1718",
4949
"InternalName": "",
50-
"LegalCopyright": "© 2020 - 2023 FloatTech",
50+
"LegalCopyright": "© 2020 - 2023 FloatTech. All Rights Reserved.",
5151
"LegalTrademarks": "",
5252
"OriginalFilename": "ZBP.EXE",
5353
"PrivateBuild": "",
54-
"ProductName": "",
54+
"ProductName": "ZeroBot-Plugin",
5555
"ProductVersion": "v1.7.0-beta1",
5656
"SpecialBuild": ""
5757
}

0 commit comments

Comments
 (0)