Hide duplicate entries to same Python binary

This commit is contained in:
Tiago Koji Castro Shibata 2018-08-03 19:48:01 -07:00
Родитель 622cc037bb
Коммит 94469b62b6
3 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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,