-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Update app name on topbar based on version #159
feat: Update app name on topbar based on version #159
Conversation
mohandast52
commented
May 29, 2024
<Text>Pearl (alpha)</Text> | ||
<Text> | ||
Pearl (alpha) | ||
{store?.storeState?.appVersion?.includes('rc') ? '' : ' (staging)'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't we be able to get it from process.env.IS_STAGING
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can. I'm considering removing it completely. I'll update here once I've discussed it with Josh.
|
||
const versionName = useMemo(() => { | ||
const releaseType = store?.storeState?.releaseType; | ||
if (releaseType === 'draft') return ' (staging)'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tanya-atatakai, we can't use .env files because they aren't exposed here, so we used this technique instead.
@truemiller, do you think the appVersion is unnecessary and won't need renaming?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, not sure we need appVersion is store..
can probably just a expose constant through electron api
electron/main.js
Outdated
setupStoreIpc(ipcMain, mainWindow); | ||
const storeInitialValues = { | ||
appVersion: app.getVersion(), | ||
releaseType: process.env.IS_STAGING ? 'draft' : 'release', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
releaseType: process.env.IS_STAGING ? 'draft' : 'release', | |
releaseType: 'draft', |
…ants/publishOptions.js and update olas-operate-middleware version to '0.1.0rc26' in electron/install.js