Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

Auto-fix formatting issues

GitHub Actionb3e1b9ce7ad7
diff --git a/bin/options/icon.ts b/bin/options/icon.ts
index 2fb68e17..6b303714 100644
--- a/bin/options/icon.ts
+++ b/bin/options/icon.ts
@@ -77,7 +77,11 @@ async function copyWindowsIconIfNeeded(
const finalIconPath = generateIconPath(appName);
await fsExtra.ensureDir(path.dirname(finalIconPath));
// Reorder ICO to prioritize 256px icons for better Windows display
- const reordered = await writeIcoWithPreferredSize(convertedPath, finalIconPath, 256);
+ const reordered = await writeIcoWithPreferredSize(
+ convertedPath,
+ finalIconPath,
+ 256,
+ );
if (!reordered) {
await fsExtra.copy(convertedPath, finalIconPath);
}
diff --git a/bin/utils/ico.ts b/bin/utils/ico.ts
index 88c9336b..af435b8b 100644
--- a/bin/utils/ico.ts
+++ b/bin/utils/ico.ts
@@ -101,7 +101,10 @@ export function buildReorderedIcoBuffer(
const ordered = [...entries].sort(compareByPreferredSize(preferredSize));
const count = ordered.length;
const tableSize = ICO_HEADER_SIZE + count * ICO_DIR_ENTRY_SIZE;
- const payloadSize = ordered.reduce((acc, entry) => acc + entry.data.length, 0);
+ const payloadSize = ordered.reduce(
+ (acc, entry) => acc + entry.data.length,
+ 0,
+ );
const output = Buffer.alloc(tableSize + payloadSize);
output.writeUInt16LE(0, 0);