From 599821c01bffd7ba7e59daf7f15ee007da59d25f Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Sun, 12 Dec 2021 14:45:47 +0300 Subject: [PATCH] add script to build release for Windows --- scripts/release_win.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/release_win.ps1 diff --git a/scripts/release_win.ps1 b/scripts/release_win.ps1 new file mode 100644 index 00000000..c83a57f5 --- /dev/null +++ b/scripts/release_win.ps1 @@ -0,0 +1,8 @@ +msbuild /property:Configuration=Release /maxCpuCount MedianXLOfflineTools.sln + +$appVersionMatch = Select-String -Pattern 'NVER_STRING="(\d+(?:\.\d+)+)"' -CaseSensitive -List -Path MedianXLOfflineTools.vcxproj +$appVersion = $appVersionMatch.Matches.Groups[1].Value + +cd ..\Release +del -Force *.7z +7z a -r -mx -myx -mmt=on "MedianXLOfflineTools_${appVersion}.7z" *