Skip to content

Commit

Permalink
include electron libraries in the libraries list
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviiu committed Oct 30, 2023
1 parent 7b92eb1 commit 1e0f3fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ const getFullMetadata = () => new Promise(async res => {
},
};

for(const [name, value] of Object.keys(pkg.dependencies).sort().map(n => [n, pkg.dependencies[n]]).filter(([name]) => !name.toLowerCase().includes(`electron`))) {
for(const [name, value] of Object.keys(pkg.dependencies).sort().map(n => [n, pkg.dependencies[n]])) {
obj.buildInfo.Libraries.app[name] = value.replace(`^`, ``);
}

for(const [name, value] of Object.keys(pkg.devDependencies).sort().map(n => [n, pkg.devDependencies[n]]).filter(([name]) => !name.toLowerCase().includes(`electron`))) {
for(const [name, value] of Object.keys(pkg.devDependencies).sort().map(n => [n, pkg.devDependencies[n]])) {
obj.buildInfo.Libraries.src[name] = value.replace(`^`, ``);
}

Expand Down

0 comments on commit 1e0f3fc

Please sign in to comment.