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 Actioncb1bced974e4
diff --git a/bin/cli.ts b/bin/cli.ts
index 9d63f9fd..658b202a 100644
--- a/bin/cli.ts
+++ b/bin/cli.ts
@@ -125,7 +125,10 @@ program
.hideHelp(),
)
.addOption(
- new Option('--hide-on-close', 'Hide window on close instead of exiting (default: true for macOS, false for others)')
+ new Option(
+ '--hide-on-close',
+ 'Hide window on close instead of exiting (default: true for macOS, false for others)',
+ )
.default(DEFAULT.hideOnClose)
.hideHelp(),
)
diff --git a/bin/helpers/merge.ts b/bin/helpers/merge.ts
index 1d630ff5..3cceb373 100644
--- a/bin/helpers/merge.ts
+++ b/bin/helpers/merge.ts
@@ -66,7 +66,7 @@ export async function mergeConfig(
const { platform } = process;
// Platform-specific hide_on_close behavior: macOS keeps true, others default to false
- const platformHideOnClose = hideOnClose ?? (platform === 'darwin');
+ const platformHideOnClose = hideOnClose ?? platform === 'darwin';
// Set Windows parameters.
const tauriConfWindowOptions = {