create-ekka-desktop-app 0.3.12 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.js
CHANGED
|
@@ -225,10 +225,14 @@ Creating EKKA desktop app in ${targetDir}...
|
|
|
225
225
|
cargoContent = cargoContent.replace(/^description = ".*"$/m, `description = "${config.app.name}"`);
|
|
226
226
|
writeFileSync(cargoPath, cargoContent);
|
|
227
227
|
|
|
228
|
-
// Update src-tauri/tauri.conf.json
|
|
228
|
+
// Update src-tauri/tauri.conf.json
|
|
229
229
|
const tauriConfPath = join(targetDir, 'src-tauri', 'tauri.conf.json');
|
|
230
230
|
const tauriConf = JSON.parse(readFileSync(tauriConfPath, 'utf8'));
|
|
231
231
|
tauriConf.identifier = config.app.identifier;
|
|
232
|
+
tauriConf.productName = config.app.name;
|
|
233
|
+
if (tauriConf.app?.windows?.[0]) {
|
|
234
|
+
tauriConf.app.windows[0].title = config.app.name;
|
|
235
|
+
}
|
|
232
236
|
writeFileSync(tauriConfPath, JSON.stringify(tauriConf, null, 2) + '\n');
|
|
233
237
|
|
|
234
238
|
console.log(`
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { type CSSProperties, type ReactElement } from 'react';
|
|
7
|
+
import branding from '../../../branding/app.json';
|
|
7
8
|
|
|
8
9
|
export type Page = 'audit-log' | 'path-permissions' | 'vault' | 'doc-gen' | 'runner' | 'system';
|
|
9
10
|
|
|
@@ -118,7 +119,7 @@ export function Sidebar({ selectedPage, onNavigate, darkMode }: SidebarProps): R
|
|
|
118
119
|
return (
|
|
119
120
|
<aside style={styles.sidebar}>
|
|
120
121
|
<div style={styles.logo}>
|
|
121
|
-
<span style={styles.logoText}>
|
|
122
|
+
<span style={styles.logoText}>{branding.name}</span>
|
|
122
123
|
</div>
|
|
123
124
|
|
|
124
125
|
<nav style={styles.nav}>
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { useState, type ReactElement, type FormEvent } from 'react';
|
|
8
8
|
import { ekka } from '../../ekka';
|
|
9
|
+
import branding from '../../../branding/app.json';
|
|
9
10
|
|
|
10
11
|
interface LoginPageProps {
|
|
11
12
|
onLoginSuccess: () => void;
|
|
@@ -134,7 +135,7 @@ export function LoginPage({ onLoginSuccess, darkMode }: LoginPageProps): ReactEl
|
|
|
134
135
|
return (
|
|
135
136
|
<div style={styles.container}>
|
|
136
137
|
<div style={styles.card}>
|
|
137
|
-
<div style={styles.logo}>
|
|
138
|
+
<div style={styles.logo}>{branding.name}</div>
|
|
138
139
|
<div style={styles.subtitle}>Sign in to continue</div>
|
|
139
140
|
|
|
140
141
|
<form style={styles.form} onSubmit={handleSubmit}>
|