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 a92662f commit ca4f56a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
with:
name: win-exe
path: percy.exe
# - name: Upload app icon
# uses: actions/upload-artifact@v4
# with:
# name: percy.ico
# path: ./scripts/files/percy.ico
# - name: Upload assets
# uses: softprops/action-gh-release@d99959edae48b5ffffd7b00da66dcdb0a33a52ee
# with:
Expand Down
14 changes: 7 additions & 7 deletions scripts/win-metadata-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import * as ResEdit from 'resedit';
function windowsPostBuild(output) {
const exe = ResEdit.NtExecutable.from(fs.readFileSync(output));
const res = ResEdit.NtExecutableResource.from(exe);
// const iconFile = ResEdit.Data.IconFile.from(fs.readFileSync('./scripts/files/percy.ico'));
const iconFile = ResEdit.Data.IconFile.from(fs.readFileSync('./scripts/files/percy.ico'));

// ResEdit.Resource.IconGroupEntry.replaceIconsForResource(
// res.entries,
// 1,
// 1033,
// iconFile.icons.map(item => item.data)
// );
ResEdit.Resource.IconGroupEntry.replaceIconsForResource(
res.entries,
1,
1033,
iconFile.icons.map(item => item.data)
);

const vi = ResEdit.Resource.VersionInfo.fromEntries(res.entries)[0];

Expand Down

0 comments on commit ca4f56a

Please sign in to comment.