(qol): format
This commit is contained in:
parent
4445852c42
commit
a82ee292ce
11 changed files with 171 additions and 69 deletions
|
|
@ -8,12 +8,24 @@ const clientDir = resolve(tauriDir, "../..");
|
|||
const tauriIconsDir = join(tauriDir, "src-tauri", "icons");
|
||||
const electronIconsDir = join(clientDir, "apps", "electron", "build", "icons");
|
||||
|
||||
const desktopIcons = ["32x32.png", "64x64.png", "128x128.png", "128x128@2x.png", "icon.png", "icon.ico", "icon.icns"];
|
||||
const desktopIcons = [
|
||||
"32x32.png",
|
||||
"64x64.png",
|
||||
"128x128.png",
|
||||
"128x128@2x.png",
|
||||
"icon.png",
|
||||
"icon.ico",
|
||||
"icon.icns",
|
||||
];
|
||||
|
||||
await mkdir(electronIconsDir, { recursive: true });
|
||||
|
||||
await Promise.all(
|
||||
desktopIcons.map((icon) => copyFile(join(tauriIconsDir, icon), join(electronIconsDir, icon))),
|
||||
desktopIcons.map((icon) =>
|
||||
copyFile(join(tauriIconsDir, icon), join(electronIconsDir, icon)),
|
||||
),
|
||||
);
|
||||
|
||||
console.log(`Synced ${desktopIcons.length} desktop icons to ${electronIconsDir}`);
|
||||
console.log(
|
||||
`Synced ${desktopIcons.length} desktop icons to ${electronIconsDir}`,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue