Skip to content

Commit

Permalink
Merge branch 'feat-v4' into add-commander
Browse files Browse the repository at this point in the history
  • Loading branch information
YUUU23 committed Aug 6, 2024
2 parents 7089d92 + c1a438c commit 3115f1e
Show file tree
Hide file tree
Showing 33 changed files with 11,116 additions and 22,893 deletions.
10 changes: 5 additions & 5 deletions cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ async function deploymentPrompt() {
const app = initializeApp({ credential: cert("firebase-service-account.json") });
FIRESTORE = getFirestore(app);
} catch (error) {
throw new Error(
// Failed to connext to Firebase, exit
console.error(
"Unable to connect to Firebase\n\n" +
'Your secret key must be called "firebase-service-account.json" ' +
"and stored in the root of your repository.\n" +
"More information: https://firebase.google.com/support/guides/service-accounts\n\n" +
error.stack
'Your secret key must be called "firebase-service-account.json" and stored in the root of your repository.\n' +
"More information: https://firebase.google.com/support/guides/service-accounts"
);
process.exit(1);
}
}

Expand Down
4 changes: 2 additions & 2 deletions env/.env.clinic
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VITE_USE_EEG="true"
VITE_USE_PHOTODIODE="true"
VITE_USE_EVENT_CODES="true"
VITE_USE_PHOTODIODE="true"
5 changes: 5 additions & 0 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ export default {
{ entry: "src/Electron/preload.js", config: "vite.preload.config.js" },
],
renderer: [{ name: "main_window", config: "vite.renderer.config.js" }],
define: {
// Add the package name and version to import.meta.env
"import.meta.env.PACKAGE_NAME": JSON.stringify(process.env.npm_package_name),
"import.meta.env.PACKAGE_VERSION": JSON.stringify(process.env.npm_package_version),
},
},
},
{
Expand Down
Loading

0 comments on commit 3115f1e

Please sign in to comment.