diff --git a/src-tauri/build.rs b/src-tauri/build.rs index 36ed7391f..d4624f92b 100644 --- a/src-tauri/build.rs +++ b/src-tauri/build.rs @@ -32,10 +32,10 @@ fn main() { ) { format!("{} Nightly", base) } else { - base + base.clone() }; - println!("cargo:rustc-env=SABLE_PRODUCT_NAME={}", full_name); + println!("cargo:rustc-env=SABLE_PRODUCT_NAME={}", base); println!( "cargo:rustc-env=TAURI_CONFIG={{\"productName\":\"{}\"}}", full_name diff --git a/vite.config.ts b/vite.config.ts index 18e33d244..f980a90c8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -138,7 +138,6 @@ function serverMatrixSdkCryptoWasm() { export default defineConfig(({ command }) => { const buildFlavor = process.env.SABLE_BUILD_FLAVOR || (command === 'serve' ? 'dev' : 'stable'); - const productName = buildFlavor !== 'stable' ? `${baseProductName} Nightly` : baseProductName; return { clearScreen: false, @@ -150,7 +149,7 @@ export default defineConfig(({ command }) => { APP_VERSION: JSON.stringify(appVersion), BUILD_HASH: JSON.stringify(buildHash ?? ''), IS_RELEASE_TAG: JSON.stringify(isReleaseTag), - SABLE_PRODUCT_NAME: JSON.stringify(productName), + SABLE_PRODUCT_NAME: JSON.stringify(baseProductName), SABLE_BUILD_FLAVOR: JSON.stringify(buildFlavor), }, resolve: {