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