mirror of
https://github.com/desktop/desktop
synced 2024-09-18 07:32:01 +00:00
That's enough powershell for today
This commit is contained in:
parent
ebd5b31384
commit
9ab3fdee11
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -114,11 +114,17 @@ jobs:
|
|||
- name: Run script tests
|
||||
if: matrix.arch == 'x64'
|
||||
run: yarn test:script
|
||||
- name: Install Windows code signing certificate
|
||||
shell: bash
|
||||
if: runner.os == 'Windows'
|
||||
env:
|
||||
CERT_CONTENTS: ${{ secrets.WINDOWS_CERT_PFX }}
|
||||
run: |
|
||||
base64 -d <<<"$CERT_CONTENTS" > ./script/windows-certificate.pfx
|
||||
- name: Package production app
|
||||
run: yarn package
|
||||
env:
|
||||
npm_config_arch: ${{ matrix.arch }}
|
||||
WINDOWS_CERT_PFX: ${{ secrets.WINDOWS_CERT_PFX }}
|
||||
WINDOWS_CERT_PASSWORD: ${{ secrets.WINDOWS_CERT_PASSWORD }}
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
|
||||
|
||||
$file = "$scriptPath\windows-certificate.pfx"
|
||||
|
||||
if ((Test-Path $file)) {
|
||||
Remove-Item $file
|
||||
}
|
|
@ -56,20 +56,6 @@ function packageOSX() {
|
|||
}
|
||||
|
||||
function packageWindows() {
|
||||
const setupCertificatePath = path.join(
|
||||
__dirname,
|
||||
'setup-windows-certificate.ps1'
|
||||
)
|
||||
const cleanupCertificatePath = path.join(
|
||||
__dirname,
|
||||
'cleanup-windows-certificate.ps1'
|
||||
)
|
||||
|
||||
if (isGitHubActions() && isPublishable()) {
|
||||
console.log('Installing signing certificate…')
|
||||
cp.execSync(`powershell ${setupCertificatePath}`, { stdio: 'inherit' })
|
||||
}
|
||||
|
||||
const iconSource = path.join(
|
||||
__dirname,
|
||||
'..',
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
|
||||
# Everything is terrible: https://stackoverflow.com/a/34969243
|
||||
$certPath = "$scriptPath\windows-certificate.pfx"
|
||||
New-Item -Force $certPath -Value ([Text.Encoding]::Utf8.GetString([Convert]::FromBase64String($env:WINDOWS_CERT_PFX)))
|
||||
Get-Item $certPath | Write-Output
|
||||
$env:WINDOWS_CERT_PFX.length | Write-Output
|
Loading…
Reference in a new issue