From d57a4524ff06e917a512c7cdeb0b6cc630f87db2 Mon Sep 17 00:00:00 2001 From: Austin Andrews Date: Thu, 12 Oct 2023 23:47:02 -0500 Subject: [PATCH] fix: windows for mkcert step --- .dev/create-certs.bat | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.dev/create-certs.bat b/.dev/create-certs.bat index 431834b..4719171 100644 --- a/.dev/create-certs.bat +++ b/.dev/create-certs.bat @@ -1,6 +1,9 @@ @echo off -set "CERT_STORE=.dev/certs" +set "params=%*" +cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B ) + +set "CERT_STORE=certs" set "KEY_FILE=./%CERT_STORE%/dev.pictogrammers-key.pem" set "CERT_FILE=./%CERT_STORE%/dev.pictogrammers.pem" diff --git a/package.json b/package.json index 1a09987..5004380 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "scripts": { "build": "NODE_ENV=production npm run build --workspaces", "certs:mac": "./.dev/create-certs.sh", - "certs:win": "./.dev/create-certs.bat", + "certs:win": ".\\.dev\\create-certs.bat", "dev": "concurrently -c auto npm:dev:framework npm:dev:api npm:dev:client", "dev:api": "npm run dev --workspace=api", "dev:client": "npm run dev --workspace=client",