-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-windows.ps1
14 lines (11 loc) · 997 Bytes
/
build-windows.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Remove-Item -ErrorAction SilentlyContinue -Recurse -Force .\node_modules\, .\build\, .\prebuilds\, .\package-lock.json
# Hol die aktuelle Version von Node.js
$NodeVersion = &node -v
# Setze sie in eine Umgebungsvariable
[System.Environment]::SetEnvironmentVariable('NODE_VERSION', $NodeVersion, [System.EnvironmentVariableTarget]::Process)
[System.Environment]::SetEnvironmentVariable('NODE_VERSION', "20.18.1", [System.EnvironmentVariableTarget]::Process)
[System.Environment]::SetEnvironmentVariable('ELECTRON_VERSION', "32.2.7", [System.EnvironmentVariableTarget]::Process)
npm install
npx prebuildify -t $env:NODE_VERSION -t electron@$env:ELECTRON_VERSION --napi=false --tag-uv --tag-armv --tag-libc --strip --arch ia32
npx prebuildify -t $env:NODE_VERSION -t electron@$env:ELECTRON_VERSION --napi=false --tag-uv --tag-armv --tag-libc --strip --arch x64
#npx prebuildify -t $env:NODE_VERSION -t electron@$env:ELECTRON_VERSION --napi=false --tag-uv --tag-armv --tag-libc --strip --arch arm64