-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Improve download behavior #27
Conversation
Should fix #24. This ensures that it adds the gluon dir rather than a file names gluon.
The primary justification for this is adding/updating extensions. Ideally, you should just be able to run `download` again to get the new extensions, which the current implementation does not allow for.
I personally suggest adding some kind of force argument, but that isn't necessary. |
log.info("'engine/' is empty, deleting contents...") | ||
rmSync(ENGINE_DIR, { recursive: true }) | ||
|
||
} |
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.
Do you mean if it isn't empty? If firefox has already been downloaded, it will skip downloading it and go to downloading addons.
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.
LGTM
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.
LGTM
There are a few problems with download that this solves:
a) There isn't enough logging, especially with GitHub addons, to be helpful in error reports
b) Download didn't allow you to download extensions without redownloading
engine/
(regression from #25)@splatboydev because this is changing behavior, can you review this?