-
Notifications
You must be signed in to change notification settings - Fork 176
Briefcase installer options #1144
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
base: briefcase-integration
Are you sure you want to change the base?
Briefcase installer options #1144
Conversation
* Initial prototype as shown in demo * Switch to install_launcher option * Update schema properly * Move MSI file rather than copying it * Add fallbacks for invalid versions and app names * Use absolute paths in install script * Check that briefcase.exe exists * Add briefcase to dependencies, and make it and tomli-w Windows-only * Move Windows-specific dependencies from environment.yml to extra-requirements-windows.txt --------- Co-authored-by: Marco Esters <mesters@anaconda.com>
7ae9015 to
532ff27
Compare
constructor/briefcase.py
Outdated
| ) | ||
| initialize_conda = info.get("initialize_conda", "classic") | ||
| if initialize_conda: | ||
| # TODO: How would we distinguish between True/classic in the UI? Same for NSIS |
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.
True and classic are synonyms. You would have to distinguish between classic and condabin. You can currently just take what's in the NSIS template and add that here.
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.
Fixed 326be7f
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.
I was thinking about these lines:
constructor/constructor/nsis/OptionsDialog.nsh
Lines 167 to 178 in 97dbba0
| # Account for the conda mode | |
| ${If} "${INIT_CONDA_MODE}" == "condabin" | |
| ${NSD_CreateLabel} 5% "$5u" 90% 20u \ | |
| "Adds condabin/, which only contains the 'conda' executables, to PATH. \ | |
| Does not require special shortcuts but activation needs \ | |
| to be performed manually." | |
| ${Else} | |
| ${NSD_CreateLabel} 5% "$5u" 90% 20u \ | |
| "NOT recommended. This can lead to conflicts with other applications. \ | |
| Instead, use the Commmand Prompt and Powershell menus added \ | |
| to the Windows Start Menu." | |
| ${EndIf} |
You can then add the condabin UI text if info.get("initialize_conda", "classic") == "condabin", and the other text if not.
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.
Ah, updated a642278
constructor/briefcase.py
Outdated
| { | ||
| "name": "register_python", | ||
| "title": "Register Python as System Default", | ||
| "description": "TODO: Register Python description", |
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.
For now, you can just copy the description in NSIS.
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.
Fixed 326be7f
26ee3bb to
a2caeec
Compare
Description
Checklist - did you ...
newsdirectory (using the template) for the next release's release notes?