Skip to content

Commit 38e8ee4

Browse files
committed
Adding back win-ca and removing root certs on build
1 parent 50e4ed5 commit 38e8ee4

File tree

5 files changed

+49
-1
lines changed

5 files changed

+49
-1
lines changed

backend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"semver": "^7.6.3",
3939
"socket.io": "^4.8.0",
4040
"socketio-auth": "^0.1.1",
41+
"win-ca": "^3.5.1",
4142
"winston": "^3.15.0"
4243
},
4344
"devDependencies": {

backend/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const moduleAlias = require('module-alias')
22
moduleAlias.addAlias('@common', __dirname + '/common')
33

4+
import 'win-ca'
45
import * as dotenv from 'dotenv'
56
import './initializeCommon'
67
import debug from 'debug'

backend/src/types/win-ca.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module 'win-ca'

electron/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
"build-backend": "cd ../ && npm run build-backend",
1818
"build-electron": "cross-env NODE_ARCH=$npm_config_arch electron-builder",
1919
"clean": "rimraf build/* dist/*",
20+
"clear-certs": "rimraf node_modules/win-ca/pem",
2021
"compile": "tsc",
2122
"copy-env": "cd .. && npm run copy-env",
2223
"copy-icons": "cp -R src/icons build/",
2324
"copy-images": "cp -R src/images build/",
2425
"copy-install": "cp installer.nsh build/",
2526
"copy-entitlements": "cp entitlements.mac.plist build/ || true",
2627
"electron": "cross-env NODE_ENV=development electron --trace-warnings ./",
27-
"postinstall": "run-s install-*",
28+
"postinstall": "run-s install-* clear-certs",
2829
"install-electron": "electron-builder install-app-deps",
2930
"install-binaries": "sh ./scripts/binary-installer.sh",
3031
"start": "npm-run-all -l -n -p link copy-* watch-*",

package-lock.json

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)