Skip to content

Commit

Permalink
chore: fix build-win32 script
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Mar 25, 2024
1 parent 38ee51f commit 5e5cba9
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 8 deletions.
5 changes: 4 additions & 1 deletion apps/_boilerplate/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "run -T rimraf dist && yarn build:main",
"build:main": "tsc -p tsconfig.json",
"build-win32": "mkdir deploy & node ../../../scripts/build-win32.mjs boilerplate.exe && node ../../../scripts/copy-natives.js win32-x64",
"build-win32": "node ../../../scripts/build-win32.mjs boilerplate.exe && node ../../../scripts/copy-natives.js win32-x64",
"__test": "jest",
"start": "node dist/index.js"
},
Expand All @@ -24,5 +24,8 @@
"*.{ts,tsx}": [
"eslint"
]
},
"devDependencies": {
"lerna": "^6.6.1"
}
}
5 changes: 4 additions & 1 deletion apps/appcontainer-node/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "run -T rimraf dist && yarn build:main",
"build:main": "tsc -p tsconfig.json",
"build-win32": "mkdir deploy & node ../../../scripts/build-win32.mjs appContainer-node.exe && node ../../../scripts/copy-natives.js win32-x64",
"build-win32": "node ../../../scripts/build-win32.mjs appContainer-node.exe && node ../../../scripts/copy-natives.js win32-x64",
"__test": "jest",
"start": "node dist/index.js"
},
Expand All @@ -24,5 +24,8 @@
"*.{ts,tsx}": [
"eslint"
]
},
"devDependencies": {
"lerna": "^6.6.1"
}
}
5 changes: 4 additions & 1 deletion apps/http-server/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "run -T rimraf dist && yarn build:main",
"build:main": "tsc -p tsconfig.json",
"build-win32": "mkdir deploy & node ../../../scripts/build-win32.mjs http-server.exe && node ../../../scripts/copy-natives.js win32-x64",
"build-win32": "node ../../../scripts/build-win32.mjs http-server.exe && node ../../../scripts/copy-natives.js win32-x64",
"__test": "jest",
"start": "node dist/index.js"
},
Expand All @@ -24,5 +24,8 @@
"*.{ts,tsx}": [
"eslint"
]
},
"devDependencies": {
"lerna": "^6.6.1"
}
}
5 changes: 4 additions & 1 deletion apps/package-manager/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "run -T rimraf dist && yarn build:main",
"build:main": "tsc -p tsconfig.json",
"build-win32": "mkdir deploy & node ../../../scripts/build-win32.mjs package-manager.exe && node ../../../scripts/copy-natives.js win32-x64",
"build-win32": "node ../../../scripts/build-win32.mjs package-manager.exe && node ../../../scripts/copy-natives.js win32-x64",
"__test": "jest",
"start": "node dist/index.js"
},
Expand All @@ -23,5 +23,8 @@
"*.{ts,tsx}": [
"eslint"
]
},
"devDependencies": {
"lerna": "^6.6.1"
}
}
5 changes: 4 additions & 1 deletion apps/quantel-http-transformer-proxy/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "run -T rimraf dist && yarn build:main",
"build:main": "tsc -p tsconfig.json",
"build-win32": "mkdir deploy & node ../../../scripts/build-win32.mjs quantel-http-transformer-proxy.exe && node ../../../scripts/copy-natives.js win32-x64",
"build-win32": "node ../../../scripts/build-win32.mjs quantel-http-transformer-proxy.exe && node ../../../scripts/copy-natives.js win32-x64",
"start": "node dist/index.js"
},
"dependencies": {
Expand All @@ -23,5 +23,8 @@
"*.{ts,tsx}": [
"eslint"
]
},
"devDependencies": {
"lerna": "^6.6.1"
}
}
5 changes: 4 additions & 1 deletion apps/single-app/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "run -T rimraf dist && yarn build:main",
"build:main": "tsc -p tsconfig.json",
"build-win32": "mkdir deploy & node ../../../scripts/build-win32.mjs package-manager-single-app.exe && node ../../../scripts/copy-natives.js win32-x64",
"build-win32": "node ../../../scripts/build-win32.mjs package-manager-single-app.exe && node ../../../scripts/copy-natives.js win32-x64",
"__test": "jest",
"start": "node --inspect dist/index.js"
},
Expand All @@ -31,5 +31,8 @@
"*.{ts,tsx}": [
"eslint"
]
},
"devDependencies": {
"lerna": "^6.6.1"
}
}
5 changes: 4 additions & 1 deletion apps/worker/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "run -T rimraf dist && yarn build:main",
"build:main": "tsc -p tsconfig.json",
"oldbuild-win32": "mkdir deploy & rimraf deploy/worker.exe && nexe dist/index.js -t windows-x64-12.18.1 -o deploy/worker.exe && node scripts/copy-natives.js win32-x64",
"build-win32": "mkdir deploy & node ../../../scripts/build-win32.mjs worker.exe && node ../../../scripts/copy-natives.js win32-x64",
"build-win32": "node ../../../scripts/build-win32.mjs worker.exe && node ../../../scripts/copy-natives.js win32-x64",
"__test": "jest",
"start": "node dist/index.js"
},
Expand All @@ -25,5 +25,8 @@
"*.{ts,tsx}": [
"eslint"
]
},
"devDependencies": {
"lerna": "^6.6.1"
}
}
5 changes: 4 additions & 1 deletion apps/workforce/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "run -T rimraf dist && yarn build:main",
"build:main": "tsc -p tsconfig.json",
"build-win32": "mkdir deploy & node ../../../scripts/build-win32.mjs workforce.exe && node ../../../scripts/copy-natives.js win32-x64",
"build-win32": "node ../../../scripts/build-win32.mjs workforce.exe && node ../../../scripts/copy-natives.js win32-x64",
"__test": "jest",
"start": "node dist/index.js"
},
Expand All @@ -24,5 +24,8 @@
"*.{ts,tsx}": [
"eslint"
]
},
"devDependencies": {
"lerna": "^6.6.1"
}
}
2 changes: 2 additions & 0 deletions scripts/build-win32.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ if (!executableName) {
}

;(async () => {
await fse.mkdirp(outputDirectory)

log(`Collecting dependencies for ${packageJson.name}...`)
// List all Lerna packages:
const list = await exec('yarn lerna list -a --json')
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ __metadata:
resolution: "@appcontainer-node/app@workspace:apps/appcontainer-node/app"
dependencies:
"@appcontainer-node/generic": "npm:1.50.2-alpha.1"
lerna: "npm:^6.6.1"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -505,6 +506,7 @@ __metadata:
resolution: "@boilerplate/app@workspace:apps/_boilerplate/app"
dependencies:
"@boilerplate/generic": "npm:1.50.2-alpha.1"
lerna: "npm:^6.6.1"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -586,6 +588,7 @@ __metadata:
resolution: "@http-server/app@workspace:apps/http-server/app"
dependencies:
"@http-server/generic": "npm:1.50.2-alpha.1"
lerna: "npm:^6.6.1"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -1628,6 +1631,7 @@ __metadata:
resolution: "@package-manager/app@workspace:apps/package-manager/app"
dependencies:
"@package-manager/generic": "npm:1.50.2-alpha.1"
lerna: "npm:^6.6.1"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -1809,6 +1813,7 @@ __metadata:
resolution: "@quantel-http-transformer-proxy/app@workspace:apps/quantel-http-transformer-proxy/app"
dependencies:
"@quantel-http-transformer-proxy/generic": "npm:1.50.2-alpha.1"
lerna: "npm:^6.6.1"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -1878,6 +1883,7 @@ __metadata:
"@sofie-package-manager/api": "npm:1.50.2-alpha.1"
"@sofie-package-manager/worker": "npm:1.50.2-alpha.1"
"@sofie-package-manager/workforce": "npm:1.50.2-alpha.1"
lerna: "npm:^6.6.1"
underscore: "npm:^1.12.0"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -2761,6 +2767,7 @@ __metadata:
resolution: "@worker/app@workspace:apps/worker/app"
dependencies:
"@worker/generic": "npm:1.50.2-alpha.1"
lerna: "npm:^6.6.1"
languageName: unknown
linkType: soft

Expand All @@ -2778,6 +2785,7 @@ __metadata:
resolution: "@workforce/app@workspace:apps/workforce/app"
dependencies:
"@workforce/generic": "npm:1.50.2-alpha.1"
lerna: "npm:^6.6.1"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 5e5cba9

Please sign in to comment.