(feat): add native notifications
All checks were successful
/ build-web (push) Successful in 1m9s
/ build-desktop (push) Successful in 11m16s
/ build-mobile (push) Successful in 15m50s
/ release (push) Successful in 23s

(feat): add navbar profile popover
(fix): chat input box click area to slim
(qol): format
This commit is contained in:
Alois 2026-05-24 18:31:27 +02:00
commit 7ea3b32286
9 changed files with 131 additions and 59 deletions

View file

@ -12,9 +12,7 @@ const tauriConfigPath = path.resolve(__dirname, "./src-tauri/tauri.conf.json");
const isUnrender = process.argv.includes("--unrender");
// Version Source
const packageJson = JSON.parse(
fs.readFileSync(rootPackageJsonPath, "utf8")
);
const packageJson = JSON.parse(fs.readFileSync(rootPackageJsonPath, "utf8"));
const packageVersion: string = packageJson.version;
@ -22,9 +20,7 @@ if (!packageVersion && !isUnrender) {
throw new Error("No version found in package.json");
}
const targetVersion = isUnrender
? PLACEHOLDER_VERSION
: packageVersion;
const targetVersion = isUnrender ? PLACEHOLDER_VERSION : packageVersion;
// Helpers
function updateCargoToml(content: string): string {
@ -34,10 +30,7 @@ function updateCargoToml(content: string): string {
throw new Error("Could not find version field in Cargo.toml");
}
return content.replace(
regex,
`version = "${targetVersion}"`
);
return content.replace(regex, `version = "${targetVersion}"`);
}
function updateTauriConfig(content: string): string {
@ -47,10 +40,7 @@ function updateTauriConfig(content: string): string {
throw new Error("Could not find version field in tauri.conf.json");
}
return content.replace(
regex,
`"version": "${targetVersion}"`
);
return content.replace(regex, `"version": "${targetVersion}"`);
}
// Update Cargo.toml
@ -72,4 +62,4 @@ if (isUnrender) {
console.log(`Unrendered versions back to ${PLACEHOLDER_VERSION}`);
} else {
console.log(`Rendered version ${targetVersion}`);
}
}