Hide duplicate entries to same Python binary
This commit is contained in:
Родитель
622cc037bb
Коммит
94469b62b6
|
@ -28,7 +28,7 @@ export function getPythonBinaries() {
|
|||
if (process.platform === 'win32' && binaries[0] !== localPython) {
|
||||
binaries.push(null); // use null to represent local, embedded version
|
||||
}
|
||||
return binaries;
|
||||
return [...new Set(binaries)];
|
||||
}
|
||||
|
||||
function unzip(buffer: Buffer, directory: string, success: () => void, errorCallback: (err: Error) => void) {
|
||||
|
|
|
@ -49,7 +49,7 @@ export default class ConvertView extends React.Component<{}, IComponentState> {
|
|||
case InstallationStep.Downloading:
|
||||
return <Spinner label="Downloading Python..." />;
|
||||
case InstallationStep.Installing:
|
||||
return <Spinner label="Installing converter..." />;
|
||||
return <Spinner label="Downloading and installing converter..." />;
|
||||
}
|
||||
this.venvPython = this.venvPython || getVenvPython();
|
||||
if (!this.venvPython) {
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"outDir": "build/dist",
|
||||
"module": "esnext",
|
||||
"target": "es5",
|
||||
"downlevelIteration": true,
|
||||
"lib": ["es6", "es2016", "es2017.object", "dom"],
|
||||
"sourceMap": true,
|
||||
"allowJs": true,
|
||||
|
|
Загрузка…
Ссылка в новой задаче