From 45b2baf3991fd54049c84276566f64f8969c69b7 Mon Sep 17 00:00:00 2001 From: "j.foucher" Date: Sat, 2 May 2026 09:47:29 +0200 Subject: [PATCH] build: auto-copy published exes to repo root After every `dotnet publish -c Release`, the single-file binaries land in C:\ASTERION\GIT\PS_Launcher\ next to PS_Launcher.sln so they can be launched directly without digging into bin/Release/.../publish/. Implemented as an MSBuild AfterTargets="Publish" target on each csproj (PSLauncher.App, PSLauncher.Updater) using $(MSBuildThisFileDirectory) to resolve the repo root portably. Condition='Release' so debug builds don't pollute the root. .gitignore covers /PSLauncher.exe and /PSLauncher.Updater.exe so the committed tree stays clean. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitignore | 4 ++++ PSLauncher.exe - Raccourci.lnk | Bin 2566 -> 0 bytes src/PSLauncher.App/PSLauncher.App.csproj | 15 +++++++++++++++ src/PSLauncher.Updater/PSLauncher.Updater.csproj | 14 ++++++++++++++ 4 files changed, 33 insertions(+) delete mode 100644 PSLauncher.exe - Raccourci.lnk diff --git a/.gitignore b/.gitignore index 3179e82..637e60d 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,7 @@ server/builds/* # Plans .claude/ + +# Binaires copiés par le post-publish à la racine du repo +/PSLauncher.exe +/PSLauncher.Updater.exe diff --git a/PSLauncher.exe - Raccourci.lnk b/PSLauncher.exe - Raccourci.lnk deleted file mode 100644 index 01628a5e60aa1f89049c04f5b4e51a9932c80154..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2566 zcmds3Z){Ul6hDPI1{qKW&Ot!Nq6Xah_BxhrOfYn_bR}hN`ihd}#;xrhX_whHZRh&I zOv5KlFqjZNh;hgC_H^JCs-Z^A@6tN4Gqv`13yWBBIzUc2Jt;o(*~z7a+(ECu zpQwjcQx)C*Ks%f+6vVfx0;z}gvS^KzFL%`!yyPN{Lgc0(dC5=soEqq$iChrP?RN5b zL)2wr28AcftBiT5l?}L7hLf}Dx;mQ&SRrtAG-M*>#Y=s53TT5q*WrmaqCOKZFOGE- z@qSy&0Mins++E%qrT}ytBp-!oj1m;380nOTNLkao_`cgtnRK+IX^f+E(hS zz|Sc>L|aSVh3##2io_EZoqcUZZ@js1KcrVx;II4c21O_iFR;#!FVZ=vkLux!PWwyR z9s`=;fzuMLx&rOl=kKuv;mc7_7{1W)zMh_2gxc>8b*T<`LM1v{Le_i*5i_EoYCFEV z8*&18S=gqKN)8&AS`SkavkZ1n<+_4dC!P-4EqS6X7OO%yiSc;Ck?Ux;SXJJ;U+yh) z$zs_zE!WK59FzlcyR@q8D*@EhSY$MwiCIuXC5x(8u|<`r;b^Tbh4_oWTX9$rlc*!q zMx4%hA$*PHsBs^0TcalA-ao=glrogP$iV?-vNoP6(z z)PYMw1J9gzqiOwHvD(}t?u8ALshca$&z!pTckk_pv(<>S-+}Ga0@^M0{V#gy1<$!( zXE#n|jy8Rb^?|zXBSos9iRO10^i7M zSb&XR4_ZF0iS9M!P>IlTH{=fkFV-^8lj7e3Z!L=wL-SkXM&W7{MfJ{NOv-zKKUxQp zki~xv<~O5qu+p!OM0f5x_3?(QpVD>ze8ViCBwsdC=`oD|pJZ4*?b&8-dqC`%EA>x3 ucJakj-?_g1%GAEx@oiY=2*&RU(Yt$2_sqAv=AD_D`Dx&zi$C*vvHc0GpzT}$ diff --git a/src/PSLauncher.App/PSLauncher.App.csproj b/src/PSLauncher.App/PSLauncher.App.csproj index 9015fcd..db3a675 100644 --- a/src/PSLauncher.App/PSLauncher.App.csproj +++ b/src/PSLauncher.App/PSLauncher.App.csproj @@ -49,4 +49,19 @@ + + + + $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\..\')) + + + + + diff --git a/src/PSLauncher.Updater/PSLauncher.Updater.csproj b/src/PSLauncher.Updater/PSLauncher.Updater.csproj index e62d687..272d2d8 100644 --- a/src/PSLauncher.Updater/PSLauncher.Updater.csproj +++ b/src/PSLauncher.Updater/PSLauncher.Updater.csproj @@ -19,4 +19,18 @@ false + + + + $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\..\')) + + + + +