Skip to content

Commit a87fe3c

Browse files
committed
fixed silly typo
1 parent 30af780 commit a87fe3c

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/package-build.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,26 @@ jobs:
7474
run: |
7575
choco install osslsigncode -y
7676
77-
- name: Sign Windows binaries
78-
if: matrix.os == 'windows-latest'
79-
shell: pwsh
80-
run: |
81-
# Generate cert
82-
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=EcoOptimizer"
83-
84-
# Sign in-place using temporary file
85-
$TempFile = "dist\temp-signed.exe"
86-
osslsigncode sign -certs cert.pem -key key.pem -n "EcoOptimizer" `
87-
-t http://timestamp.digicert.com `
88-
-in "dist\ecooptimizer-server-${{ matrix.artifact_name }}" `
89-
-out $TempFile
90-
Move-Item -Path $TempFile -Destination "dist\ecooptimizer-server-${{ matrix.artifact_name }}" -Force
91-
92-
osslsigncode sign -certs cert.pem -key key.pem -n "EcoOptimizer" `
93-
-t http://timestamp.digicert.com `
94-
-in "dist\ecooptimizer-server-dev-${{ matrix.artifact_name }}" `
95-
-out $TempFile
96-
Move-Item -Path $TempFile -Destination "dist\ecooptimizer-server-dev-${{ matrix.artifact_name }}" -Force
77+
- name: Sign Windows binaries
78+
if: matrix.os == 'windows-latest'
79+
shell: pwsh
80+
run: |
81+
# Generate cert
82+
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=EcoOptimizer"
83+
84+
# Sign in-place using temporary file
85+
$TempFile = "dist\temp-signed.exe"
86+
osslsigncode sign -certs cert.pem -key key.pem -n "EcoOptimizer" `
87+
-t http://timestamp.digicert.com `
88+
-in "dist\ecooptimizer-server-${{ matrix.artifact_name }}" `
89+
-out $TempFile
90+
Move-Item -Path $TempFile -Destination "dist\ecooptimizer-server-${{ matrix.artifact_name }}" -Force
91+
92+
osslsigncode sign -certs cert.pem -key key.pem -n "EcoOptimizer" `
93+
-t http://timestamp.digicert.com `
94+
-in "dist\ecooptimizer-server-dev-${{ matrix.artifact_name }}" `
95+
-out $TempFile
96+
Move-Item -Path $TempFile -Destination "dist\ecooptimizer-server-dev-${{ matrix.artifact_name }}" -Force
9797

9898
- name: Sign macOS binaries
9999
if: matrix.os == 'macos-latest'

0 commit comments

Comments
 (0)