Skip to content

Commit

Permalink
add json mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
devidw authored and kvndrsslr committed Aug 3, 2024
1 parent f91f2f7 commit 33e27f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ ${iconMap
// chmod +x ./dist/icon_map.sh
fs.chmodSync("./dist/icon_map.sh", 0o755);

const iconMapJson = JSON.stringify(iconMap.map(a => {
return {
iconName: a.iconName,
appNames: a.appNames.replaceAll("\"", "").split(" | "),
}
}), null, 4)

fs.writeFileSync("./dist/icon_map.json", iconMapJson, "utf-8");

return { iconMapBashFn };
}

Expand Down

0 comments on commit 33e27f4

Please sign in to comment.