Skip to content

Conversation

egor-zalenski
Copy link
Contributor

#RI-4284 - Prepare RedisInsight for the Apple Store

#RI-4284 - Prepare RedisInsight for the Apple Store
rsergeenko
rsergeenko previously approved these changes Mar 22, 2023
const homedir = process.env.APP_FOLDER_ABSOLUTE_PATH
|| (join(os.homedir(), process.env.APP_FOLDER_NAME || '.redisinsight-v2'));
|| (join(
process['mas'] ? `/Users/${getUsername()}` : os.homedir(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it mean that for all mac builds we will got to /Users//.ri* and this logic is needed because os.homedir for mas builds returns different path?
Also I'm not sure that this is robust solution at all. Is it possible for user to change home dir destination? I guess yes, it is possible. If so - you might have an error that such folder does not exists or permission error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

process.mas is true only for Mac Apple Store (mas), it is an undefined for mac builds

yes, mas build has a different path because of sandbox.
Viktar wants to all mac builds should have the same folder

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But is it possible to have different pattern for user's folder?
Let say i have user reviewer. Are you sure that the user's home folder will be exactly placed into this path /Users/reviewer? Is there a way for user to change his home folder destination?
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Viktar said to remove this logic about single homedir

egor-zalenski and others added 3 commits March 23, 2023 17:51
# Conflicts:
#	redisinsight/ui/src/packages/clients-list/yarn.lock
#	redisinsight/ui/src/packages/redisgraph/src/styles/styles.less
#	redisinsight/ui/src/packages/redistimeseries-app/src/index.html
applicationName: 'RedisInsight-v2',
applicationVersion: app.getVersion() || '2.20.0',
applicationVersion:
`${app.getVersion() || '2.20.0'}${process.env.NODE_ENV !== 'production' && `-dev-${process.getCreationTime()}`}`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

process.getCreationTime()???

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vlad-dargel vlad-dargel merged commit ca2f7ed into main Mar 28, 2023
@vlad-dargel vlad-dargel deleted the build/mac_apple_store branch March 28, 2023 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants