-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild-windows.ps1
26 lines (19 loc) · 1.18 KB
/
build-windows.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$base_url = "https://dl.cryptlex.com/downloads"
$lexactivator_version ="v3.31.3"
New-Item -Path ".\tmp\windows" -ItemType Directory
$url = "$base_url/$lexactivator_version/LexActivator-Win.zip"
Write-Host "Downloading LexActivator library ..."
Write-Host $url
$output = ".\tmp\windows\LexActivator-Win.zip"
(New-Object System.Net.WebClient).DownloadFile($url, $output)
Expand-Archive $output -DestinationPath ".\tmp\windows\LexActivator-Win"
Copy-Item -Path ".\tmp\windows\LexActivator-Win\libs\vc14\x64\LexActivator.lib" -Destination ".\"
npm i
node-gyp rebuild
Copy-Item -Path ".\build\Release\lexactivator.node" -Destination ".\lib\bindings\windows\x64\lexactivator.node"
Copy-Item -Path ".\tmp\windows\LexActivator-Win\libs\vc14\x64\LexActivator.dll" -Destination ".\lib\bindings\windows\x64\LexActivator.dll"
Copy-Item -Path ".\tmp\windows\LexActivator-Win\libs\vc14\x86\LexActivator.lib" -Destination ".\"
npm i
node-gyp rebuild --arch=ia32
Copy-Item -Path ".\build\Release\lexactivator.node" -Destination ".\lib\bindings\windows\x32\lexactivator.node"
Copy-Item -Path ".\tmp\windows\LexActivator-Win\libs\vc14\x86\LexActivator.dll" -Destination ".\lib\bindings\windows\x32\LexActivator.dll"