forked from desktop/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement certificate setup and cleanup and pass arguments to signtool
- Loading branch information
Brendan Forster
committed
Jul 5, 2016
1 parent
4fea41d
commit ffef11d
Showing
3 changed files
with
32 additions
and
3 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,7 @@ | ||
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition | ||
|
||
$file = "$scriptPath\windows-certificate.pfx" | ||
|
||
if ((Test-Path $file)) { | ||
Remove-Item $file | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition | ||
|
||
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | ||
$headers.Add("Authorization", "token $env:DESKTOPBOT_TOKEN") | ||
$headers.Add("Accept", 'application/vnd.github.v3.raw') | ||
|
||
Invoke-WebRequest 'https://api.github.com/repos/desktop/desktop-secrets/contents/windows-certificate.pfx' ` | ||
-Headers $headers ` | ||
-OutFile "$scriptPath\windows-certificate.pfx" |