-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
param ( | ||
[Parameter(Mandatory=$true)][string]$version | ||
) | ||
|
||
$curDir = Get-Location | ||
|
||
Write-Output "Setting up development environment with Visuals Studio 2022" | ||
Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" | ||
Enter-VsDevShell -VsInstallPath "C:\Program Files\Microsoft Visual Studio\2022\Community\" | ||
|
||
$Env:RELEASE_VERSION = "$version" | ||
$Env:PATH_TO_JUCE = "$curDir\JUCE" | ||
|
||
Write-Output "Changing location to $curDir" | ||
Set-Location $curDir | ||
|
||
$signId = "Open Source Developer, Geert Bevin" | ||
$buildLocation = "Builds\VisualStudio2017\x64" | ||
|
||
Write-Output "Deleting previous build from $buildLocation" | ||
Remove-Item -LiteralPath $buildLocation -Force -Recurse | ||
|
||
Write-Output "Building project" | ||
MSBuild.exe .\Builds\VisualStudio2017\sendmidi.sln /p:Configuration=Release /p:PreferredToolArchitecture=x64 /p:Platform=x64 /clp:ErrorsOnly | ||
|
||
Write-Output "Codesigning all artifacts" | ||
|
||
& signtool sign /n "$signId" /t http://time.certum.pl/ /fd sha1 /v "$buildLocation\Release\ConsoleApp\sendmidi.exe" |