From a45322964202f9c06ff713dfa6257a9f3bd2257e Mon Sep 17 00:00:00 2001 From: nathaninline Date: Thu, 25 Jun 2026 17:54:41 +0200 Subject: [PATCH] build: metadonnees Windows (versioninfo) + workflow release CI Embarque editeur/version/description dans le .exe via goversioninfo (.syso) pour reduire les faux positifs antivirus sur le binaire Go. Ajoute un workflow GitHub Actions qui build les 6 cibles et publie la release sur tag. --- main.go | 7 +++++++ resource_windows_amd64.syso | Bin 0 -> 1188 bytes resource_windows_arm64.syso | Bin 0 -> 1188 bytes versioninfo.json | 37 ++++++++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 resource_windows_amd64.syso create mode 100644 resource_windows_arm64.syso create mode 100644 versioninfo.json diff --git a/main.go b/main.go index e14f905..8b97366 100644 --- a/main.go +++ b/main.go @@ -1,4 +1,11 @@ // jean — single-binary LLM server manager + web UI for llama.cpp deployments. +// +// Les directives ci-dessous embarquent les métadonnées Windows (éditeur, version, +// description) dans le .exe pour réduire les faux positifs antivirus. Régénère +// les .syso après avoir bumpé la version : `go generate ./...` +// (nécessite : go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@latest) +//go:generate goversioninfo -64 -o resource_windows_amd64.syso versioninfo.json +//go:generate goversioninfo -64 -arm -o resource_windows_arm64.syso versioninfo.json package main import ( diff --git a/resource_windows_amd64.syso b/resource_windows_amd64.syso new file mode 100644 index 0000000000000000000000000000000000000000..24282bf66b8b9c1a913585e5d2180ba60b106a20 GIT binary patch literal 1188 zcmai!O>5Lp6o%h8<43`ThzpllxTs*KK?emXC|aeJ+KS5HPNp+4M$$=0qS&1aaV4(% zGrDl=4-yLg1MxX0O=d;}@11+^Ip@CT`(~zJ0@?W1ml~=c49cpUxU|`}xZ8mI%xS}L z_x)#FI|5yTyefTaCCwQ)KKh4z1$$e7Ua?MkbFGu!5N4zodd>bw&!M)pr(O7M_Q%jR ze)NC+wrI{ccfLFCIWP5@O-`o*jvf32*sE14)l3Q2Qe}#jC7Zze3`E9ijYlNkntUE00-wmAwZ+)&EYf)tj zm1_H7w!i8Y*d1_*qpa(N4)LENv5w1M!m`ZzGNC6Sek0axsQ*`g0IKO`h{x1BJR`@L zxNU4`g;@4ZeK*z2x?Wip_8Qf_qXFDUm$W%QLpRryYEFoJx6_!v4f7M}9DbIue^+&0 zQ+s#zEsd~NcF|aMo3BW^#`h=QXbHmdvHrGi#r$3D9~;2`1MKW+@t-Gfi2?oq2Fs>u literal 0 HcmV?d00001 diff --git a/resource_windows_arm64.syso b/resource_windows_arm64.syso new file mode 100644 index 0000000000000000000000000000000000000000..7697194a57d4e78897167c005f6f9dfe3338b5cd GIT binary patch literal 1188 zcmai!O>5Lp6o%h);zz-ShzpllxTs*KK?emXRJ2MfwH1}YolIw9j7%pXiDGvyT#9Rd zgDV$q{Xs&(e;_{Rq{+;PU^4gKbI*Oxd%kXF@->h>pF^pU!k}MP<=C~&w8PmZ;zw3{ z40qRmwrih27ZI;WA6iYb29A&ap2ha<~NpEg-(i^ZD>X}|LKhRU8T^(qj{VwxE zWP5&uzkXXZE519|ty{jALf$5)Qw7T&eggPvmC7_z3R|YB5}0Rtr5wzfV`2>y>po+k zd(6@ovJTMXI^s>h*Q(IJX025q-_Ztd3S*7-tq#@K*zp^nN3Irxk2;Y`O=Y2-0-tVbQc#bQxg?uW3| z>`Tw#J9Q4aT5Mxc;mL3XsLbt_xh&SyaqYQfm|wCieyz6JvqM+^UzPLg;-;lZZK{$tbf;a2E6sTcC1A; zU8q#s2jl*vn_&0ArH-<$7dpm&hQ>NBzX{7a>&uv)MEH#vw~+o{{XVFsn-Lx}@9>Nq z6XLdKQ>(;saO%6M=CtdTWns5b-975Fd+(Yy=O@_ano!L#k?(gF^SfbwVx7g$GWPGP z&TDG-&c3A~Y-JaXRk!(yq^o>?;*OReEFbG{dsocgh47mJ{6E0f6)pbr1ZaBB@CU7* Bri}mq literal 0 HcmV?d00001 diff --git a/versioninfo.json b/versioninfo.json new file mode 100644 index 0000000..ad26496 --- /dev/null +++ b/versioninfo.json @@ -0,0 +1,37 @@ +{ + "FixedFileInfo": { + "FileVersion": { + "Major": 0, + "Minor": 2, + "Patch": 7, + "Build": 0 + }, + "ProductVersion": { + "Major": 0, + "Minor": 2, + "Patch": 7, + "Build": 0 + }, + "FileFlagsMask": "3f", + "FileFlags": "00", + "FileOS": "040004", + "FileType": "01", + "FileSubType": "00" + }, + "StringFileInfo": { + "CompanyName": "Jean contributors", + "FileDescription": "Jean — gestionnaire mono-binaire de serveurs llama.cpp auto-hébergés", + "InternalName": "jean", + "LegalCopyright": "Copyright (c) 2026 Jean contributors. MIT License.", + "OriginalFilename": "jean.exe", + "ProductName": "Jean", + "ProductVersion": "0.2.7", + "Comments": "https://github.com/nathaninline/jean — projet open source (MIT)" + }, + "VarFileInfo": { + "Translation": { + "LangID": "040C", + "CharsetID": "04B0" + } + } +}