From 8c6bdf51040283e720bd64670e783681a7ca0d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Sun, 3 Nov 2024 17:53:49 +0100 Subject: [PATCH] Added publishing helper scripts --- versionstamp.cmd => 00_versionstamp.cmd | 0 01_build_release.cmd | 23 +++++++++++++++++++++++ 02_sign.cmd | 10 ++++++++++ 3 files changed, 33 insertions(+) rename versionstamp.cmd => 00_versionstamp.cmd (100%) create mode 100644 01_build_release.cmd create mode 100644 02_sign.cmd diff --git a/versionstamp.cmd b/00_versionstamp.cmd similarity index 100% rename from versionstamp.cmd rename to 00_versionstamp.cmd diff --git a/01_build_release.cmd b/01_build_release.cmd new file mode 100644 index 0000000..eea37d4 --- /dev/null +++ b/01_build_release.cmd @@ -0,0 +1,23 @@ +@echo off +@setlocal + +set MYDIR=%~dp0 +pushd "%MYDIR%" + +where msbuild > nul 2>&1 && ( + echo Starting build + + msbuild /p:Configuration="Release (WinMain)" /p:Platform=x64 .\NefConUtil.vcxproj + msbuild /p:Configuration="Release (WinMain)" /p:Platform=ARM64 .\NefConUtil.vcxproj + msbuild /p:Configuration="Release (WinMain)" /p:Platform=Win32 .\NefConUtil.vcxproj + + msbuild /p:Configuration="Release (Console)" /p:Platform=x64 .\NefConUtil.vcxproj + msbuild /p:Configuration="Release (Console)" /p:Platform=ARM64 .\NefConUtil.vcxproj + msbuild /p:Configuration="Release (Console)" /p:Platform=Win32 .\NefConUtil.vcxproj + +) || ( + echo MSBuild not found, please make sure you called the "Setup-VS2022" snippet before! +) + +popd +endlocal diff --git a/02_sign.cmd b/02_sign.cmd new file mode 100644 index 0000000..368f01b --- /dev/null +++ b/02_sign.cmd @@ -0,0 +1,10 @@ +@echo off +@setlocal + +set MYDIR=%~dp0 +pushd "%MYDIR%" + +wdkwhere run signtool sign /v /n "Nefarius Software Solutions e.U." /tr http://timestamp.digicert.com /fd sha256 /td sha256 ".\bin\x64\*.exe" ".\bin\ARM64\*.exe" ".\bin\x86\*.exe" + +popd +endlocal \ No newline at end of file