feat: add staging info on bottom panel

This commit is contained in:
Zamitto 2024-11-08 20:01:56 -03:00
parent 8a67492cf8
commit e277af0e4b
2 changed files with 4 additions and 6 deletions

View file

@ -5,12 +5,12 @@ export const LUDUSAVI_MANIFEST_URL = "https://cdn.losbroxas.org/manifest.yaml";
export const defaultDownloadsPath = app.getPath("downloads"); export const defaultDownloadsPath = app.getPath("downloads");
export const isStaging = import.meta.env.MAIN_VITE_API_URL.includes("staging");
export const databaseDirectory = path.join(app.getPath("appData"), "hydra"); export const databaseDirectory = path.join(app.getPath("appData"), "hydra");
export const databasePath = path.join( export const databasePath = path.join(
databaseDirectory, databaseDirectory,
import.meta.env.MAIN_VITE_API_URL.includes("staging") isStaging ? "hydra_test.db" : "hydra.db"
? "hydra_test.db"
: "hydra.db"
); );
export const logsPath = path.join(app.getPath("appData"), "hydra", "logs"); export const logsPath = path.join(app.getPath("appData"), "hydra", "logs");
@ -25,4 +25,4 @@ export const achievementSoundPath = app.isPackaged
export const backupsPath = path.join(app.getPath("userData"), "Backups"); export const backupsPath = path.join(app.getPath("userData"), "Backups");
export const appVersion = app.getVersion(); export const appVersion = app.getVersion() + (isStaging ? "-staging" : "");

View file

@ -36,8 +36,6 @@ export interface AppProps {
children: React.ReactNode; children: React.ReactNode;
} }
console.log(import.meta.env);
Intercom({ Intercom({
app_id: import.meta.env.RENDERER_VITE_INTERCOM_APP_ID, app_id: import.meta.env.RENDERER_VITE_INTERCOM_APP_ID,
}); });