mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
fix: provide Opus config for Windows ARM64
This commit is contained in:
1 parent
c211deeb98
commit
7789758024
1 file changed
+6
@@ -54,6 +54,12 @@ jobs:
|
||||
if ((node -p "process.arch") -eq "arm64") {
|
||||
$env:npm_config_node_gyp = Join-Path (Get-Location) "node_modules/node-gyp/bin/node-gyp.js"
|
||||
$opusDirectory = Join-Path (Get-Location) "node_modules/@discordjs/opus"
|
||||
$opusWindowsConfig = Join-Path (Get-Location) "node_modules/@discordjs/opus/deps/config/opus/win"
|
||||
$arm64Config = Join-Path $opusWindowsConfig "arm64/config.h"
|
||||
if (-not (Test-Path $arm64Config)) {
|
||||
New-Item -ItemType Directory -Force -Path (Split-Path -Parent $arm64Config) | Out-Null
|
||||
Copy-Item -LiteralPath (Join-Path $opusWindowsConfig "x64/config.h") -Destination $arm64Config
|
||||
}
|
||||
Push-Location $opusDirectory
|
||||
try {
|
||||
node ..\node-pre-gyp\bin\node-pre-gyp install --fallback-to-build
|
||||
|
||||
Reference in new issue
Block a user