diff options
Diffstat (limited to 'scripts/build-windows.ps1')
-rw-r--r-- | scripts/build-windows.ps1 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index e932da9..81187c6 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 | |||
@@ -136,12 +136,10 @@ if ($ACTUAL_PNPM_VERSION -ne $EXPECTED_PNPM_VERSION) { | |||
136 | if ((Test-Path -Path ".\pnpm-lock.yaml") -and (Get-Command -ErrorAction Ignore -Type Application pnpm)) | 136 | if ((Test-Path -Path ".\pnpm-lock.yaml") -and (Get-Command -ErrorAction Ignore -Type Application pnpm)) |
137 | { | 137 | { |
138 | $BASE_CMD="pnpm" | 138 | $BASE_CMD="pnpm" |
139 | $env:EXEC_CMD="pnpm dlx" | ||
140 | } | 139 | } |
141 | else | 140 | else |
142 | { | 141 | { |
143 | $BASE_CMD="npm" | 142 | $BASE_CMD="npm" |
144 | $env:EXEC_CMD="npx" | ||
145 | } | 143 | } |
146 | 144 | ||
147 | $ENV_FILE = ".env" | 145 | $ENV_FILE = ".env" |
@@ -149,7 +147,7 @@ if (-not (Test-Path -Path $ENV_FILE)) { | |||
149 | Copy-Item .env.example -Destination $ENV_FILE | 147 | Copy-Item .env.example -Destination $ENV_FILE |
150 | $APP_KEY = ("!@#$%^&*0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".tochararray() | sort {Get-Random})[0..32] -join '' | 148 | $APP_KEY = ("!@#$%^&*0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".tochararray() | sort {Get-Random})[0..32] -join '' |
151 | # SAVE APP_KEY TO .env FILE | 149 | # SAVE APP_KEY TO .env FILE |
152 | (Get-Content $ENV_FILE -Raw) -replace 'APP_KEY', "APP_KEY=$APP_KEY" | Set-Content $ENV_FILE | 150 | (Get-Content $ENV_FILE -Raw) -replace 'APP_KEY=', "APP_KEY=$APP_KEY" | Set-Content $ENV_FILE |
153 | } | 151 | } |
154 | 152 | ||
155 | if (-not (Test-Path -Path "data")) { | 153 | if (-not (Test-Path -Path "data")) { |