Skip to content

Commit

Permalink
Update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
pankaj443 committed Jun 17, 2024
1 parent ca4f56a commit bbb5366
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,25 @@ jobs:
run: npm install resedit
- name: Update metadata
run: node ./scripts/win-metadata-update.js
# - name: Sign binary
# uses: lando/code-sign-action@v2
# with:
# file: ./percy.exe
# certificate-data: ${{ secrets.WINDOWS_CERT }}
# certificate-password: ${{ secrets.WINDOWS_CERT_KEY }}
- name: Sign binary
uses: lando/code-sign-action@v2
with:
file: ./percy.exe
certificate-data: ${{ secrets.WINDOWS_CERT }}
certificate-password: ${{ secrets.WINDOWS_CERT_KEY }}
- name: Verify executable
run: ./percy.exe --version
- name: Upload win artifact
uses: actions/upload-artifact@v4
with:
name: percy.exe
path: percy.exe
- name: Download Sigcheck
run: |
Invoke-WebRequest -Uri https://download.sysinternals.com/files/Sigcheck.zip -OutFile sigcheck.zip
Expand-Archive -Path sigcheck.zip -DestinationPath .
- name: Run Sigcheck
run: .\sigcheck.exe -accepteula -a ./percy.exe
# - name: Upload win artifact
# uses: actions/upload-artifact@v4
# with:
# name: percy.exe
# path: percy.exe
# - run: |
# powershell -Command "Compress-Archive -Path 'percy.exe' -DestinationPath 'percy-win.zip'"
# - name: Upload assets
Expand Down
Binary file modified scripts/files/percy.ico
100755 → 100644
Binary file not shown.
4 changes: 2 additions & 2 deletions scripts/win-metadata-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function windowsPostBuild(output) {
InternalName: 'test'
}
);
vi.setFileVersion(1, 0, 0, 1033);
vi.setProductVersion(1, 0, 0, 1033);
vi.setFileVersion(1, 28, 8);
vi.setProductVersion(1, 28, 8);
vi.outputToResourceEntries(res.entries);
res.outputResource(exe);
fs.writeFileSync(output, Buffer.from(exe.generate()));
Expand Down

0 comments on commit bbb5366

Please sign in to comment.