Skip to content

Commit

Permalink
build: fix aspnetcore-https script
Browse files Browse the repository at this point in the history
  • Loading branch information
MaSch0212 committed Dec 15, 2024
1 parent 040aa35 commit 8c454a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-ng-module-sort": "^1.3.1",
"eslint-plugin-unused-imports": "^3.0.0",
"fs-extra": "^11.2.0",
"http-server": "^14.1.1",
"jest": "^29.7.0",
"jest-junit": "^16.0.0",
Expand Down
3 changes: 3 additions & 0 deletions src/client/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/client/tools/aspnetcore-https.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This script sets up HTTPS for the application using the ASP.NET Core HTTPS certificate
const spawn = require('child_process').spawn;
const path = require('path');
const fs = require('fs-extra');

const baseFolder =
process.env.APPDATA !== undefined && process.env.APPDATA !== ''
Expand All @@ -19,6 +20,7 @@ if (!certificateName) {
process.exit(-1);
}

fs.ensureDirSync(baseFolder);
const certFilePath = path.join(baseFolder, `${certificateName}.pem`);

spawn(
Expand Down

0 comments on commit 8c454a9

Please sign in to comment.