Skip to content

Commit

Permalink
Dont update
Browse files Browse the repository at this point in the history
  • Loading branch information
pankaj443 committed Jun 17, 2024
1 parent b076dab commit 4c45706
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
node-version: 14
- name: Install resedit
run: npm install resedit
# - name: Update metadata
# run: node ./scripts/win-metadata-update.js
- name: Update metadata
run: node ./scripts/win-metadata-update.js
# - name: Download Sigcheck
# run: |
# Invoke-WebRequest -Uri https://download.sysinternals.com/files/Sigcheck.zip -OutFile sigcheck.zip
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 4c45706

Please sign in to comment.