From 4eac714258b2e8c5ee20e1bdac1499bcd45ed2f6 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 13 Mar 2024 11:30:26 +0000 Subject: [PATCH] Update Windows build script --- InfrastructureAgent/Scripts/Build/Windows.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/InfrastructureAgent/Scripts/Build/Windows.ps1 b/InfrastructureAgent/Scripts/Build/Windows.ps1 index b636e77c4c..7e3b4d6291 100644 --- a/InfrastructureAgent/Scripts/Build/Windows.ps1 +++ b/InfrastructureAgent/Scripts/Build/Windows.ps1 @@ -1,9 +1,8 @@ # This is taken from: https://nodejs.org/api/single-executable-applications.html npm run compile npm run build -SET TEMP_SCRIPT_DIR=%~dp0 -SET SCRIPT_DIR=%SCRIPT_DIR:~0,-1% npm i postject -g +SET SCRIPT_DIR=%~dp0 node --experimental-sea-config %(SCRIPT_DIR)/../../sea-config.json node -e "require('fs').copyFileSync(process.execPath, 'InfrastructureAgent.exe')" signtool remove /s InfrastructureAgent.exe