2022-12-28 12:20:27 +03:00
|
|
|
Set-StrictMode -Version latest
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
|
2023-04-05 12:07:50 +03:00
|
|
|
write-host -foregroundcolor Cyan "----- create windows64 installer -----"
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
$actual_dir=(Get-Location).Path
|
|
|
|
|
|
|
|
# install NSIS
|
|
|
|
if (Get-Command makensis) {echo "makensis already installed"} else {choco install --confirm --no-progress nsis}
|
|
|
|
$nsis_dir=(Get-Command makensis).path | Split-Path -Parent
|
2022-09-28 18:41:43 +03:00
|
|
|
Expand-Archive -Path "$PSScriptRoot\..\..\bin\windows\EnVar_plugin.zip" -DestinationPath "$nsis_dir" -Force -Verbose
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
# create win64 installer
|
|
|
|
cd $PSScriptRoot\..\..\target\win-package
|
|
|
|
makensis.exe /NOCD /V4 ..\..\bin\windows\hurl.nsi
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
cd $actual_dir
|
2023-04-05 12:07:50 +03:00
|
|
|
|