This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1968 from blockstack/feature/msi-signkey-update
Update Windows installer (msi) file signing key
- Loading branch information
Showing
5 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
@if not defined _echo echo off | ||
|
||
REM Finds and invokes msbuild.exe with the arguments passed to this script. | ||
REM Requires Visual Studio 2017 to be installed. | ||
REM Requires Visual Studio to be installed. | ||
REM See https://github.com/Microsoft/vswhere for details. | ||
|
||
set msbuild_dir="MSBuild\15.0\Bin\MSBuild.exe" | ||
set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
|
||
if not exist %vswhere% ( | ||
echo "vswhere.exe not found. Is Visual Studio 2017 installed?" | ||
echo "vswhere.exe not found. Is Visual Studio 2017/2019 installed?" | ||
exit /b 2 | ||
) | ||
|
||
for /f "usebackq delims=" %%i in (`%vswhere% -latest -property installationPath`) do ( | ||
if exist "%%i\%msbuild_dir%" ( | ||
"%%i\%msbuild_dir%" %* | ||
exit /b | ||
) else if not exist "%%i\%msbuild_dir%" ( | ||
echo "MSBuild.exe not found" | ||
exit /b 2 | ||
) | ||
) | ||
for /f "usebackq delims=" %%F in (`%vswhere% -latest -property installationPath`) do ( | ||
set install_path=%%F | ||
) | ||
echo Using VS installation: %install_path% | ||
|
||
for /f "usebackq delims=" %%F in (`dir "%install_path%\*MSBuild.exe" /s /b`) do ( | ||
set msbuild_path=%%F | ||
goto found_msbuild | ||
) | ||
echo MSBuild.exe not found | ||
exit /b 2 | ||
|
||
:found_msbuild | ||
echo using msbuild: %msbuild_path% | ||
"%msbuild_path%" %* | ||
exit /b !errorlevel! |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@if not defined _echo echo off | ||
|
||
REM Finds and invokes signtool.exe with the arguments passed to this script. | ||
|
||
set signtool_search="%ProgramFiles(x86)%\Windows Kits\10\bin\10*\x86\signtool.exe" | ||
|
||
for /f "usebackq delims=" %%i in (`powershell -command "& { @((Resolve-Path -Path \"%signtool_search%\").Path)[0] }"`) do ( | ||
echo Using signtool: %%i | ||
set signtool_path=%%i | ||
goto found_signtool | ||
) | ||
echo signtool.exe not found | ||
exit /b 2 | ||
|
||
:found_signtool | ||
"%signtool_path%" %* | ||
exit /b !errorlevel! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters