mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
11 lines
537 B
Bash
11 lines
537 B
Bash
# This is taken from: https://nodejs.org/api/single-executable-applications.html
|
|
|
|
SET TEMP_SCRIPT_DIR=%~dp0
|
|
SET SCRIPT_DIR=%SCRIPT_DIR:~0,-1%
|
|
npm i postject -g
|
|
node --experimental-sea-config %(SCRIPT_DIR)/../../sea-config.json
|
|
node -e "require('fs').copyFileSync(process.execPath, 'InfrastructureAgent.exe')"
|
|
signtool remove /s InfrastructureAgent.exe
|
|
npx postject InfrastructureAgent.exe NODE_SEA_BLOB sea-prep.blob `
|
|
--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
|
|
signtool sign /fd SHA256 InfrastructureAgent.exe |