mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Uses the https://packages.meteor.com/bootstrap-link URL to generate a link to the windows bootstrap tarball. With this change we no longer have to build a new installer for every release.
24 lines
736 B
PowerShell
24 lines
736 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
$script_path = (split-path -parent $MyInvocation.MyCommand.Definition) + "\"
|
|
|
|
echo "Compiling InstallMeteor"
|
|
|
|
$web_client = new-object System.Net.WebClient
|
|
|
|
# download 7za.exe, a build dependency that we don't want to compile each time
|
|
$7za_path = $script_path + "installer\WiXInstaller\Resources\7za.exe"
|
|
if (!(Test-Path $7za_path)) {
|
|
echo "Downloading binary dependencies: 7za"
|
|
$7za_url = "https://s3.amazonaws.com/meteor-windows/build-deps/7za.exe"
|
|
$web_client.DownloadFile($7za_url, $7za_path)
|
|
}
|
|
|
|
Push-Location installer
|
|
Invoke-Expression ("cmd /c build.bat")
|
|
Pop-Location
|
|
|
|
move-item ($script_path + "installer\Release\InstallMeteor.exe") ($script_path + "InstallMeteor.exe") -Force
|
|
|
|
echo "Done"
|
|
|