Skip to content

Commit ca773f4

Browse files
committed
feat: 0.1.1 update
1 parent 771660f commit ca773f4

11 files changed

+111
-16
lines changed

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Extract changelog
3737
id: changelog
38-
run: bash ./tools/release_notes.sh > release.md
38+
run: awk -f ./tools/release_notes.awk ./CHANGELOG.md > release.md
3939

4040
- name: Create GitHub release
4141
uses: ncipollo/release-action@v1

.github/workflows/scan.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Scan release
2+
3+
on:
4+
release:
5+
types: [published, created, released, edited]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
virustotal:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: VirusTotal Scan
15+
uses: cssnr/virustotal-action@v1
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
vt_api_key: ${{ secrets.VT_API_KEY }}
19+
rate_limit: 4
20+
update_release: true

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ and this project adheres to [Semantic Versioning][].
1313
### Removed
1414
-->
1515

16+
## [0.1.1][] - 2024-12-08
17+
18+
### Added
19+
20+
* Windows manifest and icon for binary exe
21+
* Scan release binaries on VirusTotal
22+
23+
### Changed
24+
25+
* Disabled UPX packer for Windows binaries to prevent false
26+
positives from some antivirus
27+
28+
[0.1.1]: https://github.com/WoozyMasta/bercon-go/releases/tag/v0.1.1
29+
1630
## [0.1.0][] - 2024-11-28
1731

1832
### Added

assets/bercon.jpg

88.2 KB
Loading

tools/build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ build() {
1818
go build -ldflags="-s -w -X '$version' -X '$commit' -X '$date'" \
1919
-o "./build/$bin" "$WORK_DIR"/*.go
2020

21-
[[ $GOOS == "darwin" || ($GOOS == "windows" && $GOARCH =~ "arm") ]] && return
21+
[ "$GOOS" = "windows" ] && GOARCH="$GOARCH" go-winres patch --no-backup "./build/$bin"
22+
[ "$GOOS" = "darwin" ] || [ "$GOOS" = "windows" ] && return
2223

2324
if command -v xz &>/dev/null; then
2425
upx --lzma --best "./build/$bin"

tools/dependencies.sh

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ curl -#Lo upx.tar.xz \
1111
tar -xvf upx.tar.xz --strip-components=1 "upx-$UPX_VERSION-amd64_linux/upx"
1212
chmod +x upx
1313
sudo mv upx /usr/local/bin/
14+
15+
go install github.com/tc-hib/go-winres@latest

tools/release_notes.awk

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env -S awk -f ${_} --
2+
3+
/^<!--/,/^-->/ { next }
4+
/^## \[([0-9]+\.[0-9]+\.[0-9]+)\]\s*.*/ {
5+
if (!found) {
6+
found = 1
7+
} else {
8+
exit
9+
}
10+
}
11+
found { print }

tools/release_notes.sh

-14
This file was deleted.

winres/icon.png

33.4 KB
Loading

winres/icon16.png

1013 Bytes
Loading

winres/winres.json

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"RT_GROUP_ICON": {
3+
"APP": {
4+
"0000": [
5+
"icon.png",
6+
"icon16.png"
7+
]
8+
}
9+
},
10+
"RT_MANIFEST": {
11+
"#1": {
12+
"0409": {
13+
"identity": {
14+
"name": "BattlEye RCON CLI",
15+
"version": ""
16+
},
17+
"description": "Command line utility and for BattlEye RCON",
18+
"minimum-os": "win7",
19+
"execution-level": "as invoker",
20+
"ui-access": false,
21+
"auto-elevate": false,
22+
"dpi-awareness": "system",
23+
"disable-theming": false,
24+
"disable-window-filtering": false,
25+
"high-resolution-scrolling-aware": false,
26+
"ultra-high-resolution-scrolling-aware": false,
27+
"long-path-aware": false,
28+
"printer-driver-isolation": false,
29+
"gdi-scaling": false,
30+
"segment-heap": false,
31+
"use-common-controls-v6": false
32+
}
33+
}
34+
},
35+
"RT_VERSION": {
36+
"#1": {
37+
"0000": {
38+
"fixed": {
39+
"file_version": "0.0.0",
40+
"product_version": "0.0.0"
41+
},
42+
"info": {
43+
"0409": {
44+
"Comments": "",
45+
"CompanyName": "",
46+
"FileDescription": "Command line utility and for BattlEye RCON",
47+
"FileVersion": "",
48+
"InternalName": "BattlEye RCON CLI",
49+
"LegalCopyright": "WoozyMasta",
50+
"LegalTrademarks": "",
51+
"OriginalFilename": "bercon-cli.exe",
52+
"PrivateBuild": "",
53+
"ProductName": "BattlEye RCON CLI",
54+
"ProductVersion": "",
55+
"SpecialBuild": ""
56+
}
57+
}
58+
}
59+
}
60+
}
61+
}

0 commit comments

Comments
 (0)