(feat): add native notifications
(feat): add navbar profile popover (fix): chat input box click area to slim (qol): format
This commit is contained in:
parent
67b7926dab
commit
7ea3b32286
9 changed files with 131 additions and 59 deletions
|
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue