From 8937839b2aecdffc77528524ab598ace65ab303d Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 13 Mar 2024 11:32:24 +0000 Subject: [PATCH] Add npm install command to build scripts --- InfrastructureAgent/Scripts/Build/Linux.sh | 1 + InfrastructureAgent/Scripts/Build/Mac.sh | 2 +- InfrastructureAgent/Scripts/Build/Windows.ps1 | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/InfrastructureAgent/Scripts/Build/Linux.sh b/InfrastructureAgent/Scripts/Build/Linux.sh index d29f0a1dac..597b897974 100644 --- a/InfrastructureAgent/Scripts/Build/Linux.sh +++ b/InfrastructureAgent/Scripts/Build/Linux.sh @@ -1,4 +1,5 @@ # This is taken from: https://nodejs.org/api/single-executable-applications.html +npm install npm run compile npm run build node --experimental-sea-config sea-config.json diff --git a/InfrastructureAgent/Scripts/Build/Mac.sh b/InfrastructureAgent/Scripts/Build/Mac.sh index b728fd2970..01c865228e 100644 --- a/InfrastructureAgent/Scripts/Build/Mac.sh +++ b/InfrastructureAgent/Scripts/Build/Mac.sh @@ -1,5 +1,5 @@ # This is taken from: https://nodejs.org/api/single-executable-applications.html - +npm install npm run compile npm run build SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" diff --git a/InfrastructureAgent/Scripts/Build/Windows.ps1 b/InfrastructureAgent/Scripts/Build/Windows.ps1 index 7e3b4d6291..d4852d8677 100644 --- a/InfrastructureAgent/Scripts/Build/Windows.ps1 +++ b/InfrastructureAgent/Scripts/Build/Windows.ps1 @@ -1,4 +1,5 @@ # This is taken from: https://nodejs.org/api/single-executable-applications.html +npm install npm run compile npm run build npm i postject -g