Compare commits

...
This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.

1 Commits

Author SHA1 Message Date
BrOakes f8b5006786 this might do something? 2019-12-21 18:06:24 -05:00
1 changed files with 34 additions and 0 deletions

View File

@ -72,6 +72,39 @@ async function download() {
}
break;
}
case 'darwin': {
try {
let installerPath = path.join(__dirname, '..', 'Python-Installer/', filename);
let tempPath = path.join(__dirname, '..', 'Temp-Python/');
let targetPath = path.join(__dirname, '..', 'Python/');
execSync(`${installerPath} /passive DefaultJustForMeTargetDir=${tempPath}`, {
stdio: "inherit"
});
console.log("Creating Portable Python Directory");
copydir.sync(tempPath, targetPath);
console.log("Portable Directory Created!");
console.log("Uninstalling Unnecessary Python Files");
execSync(`${installerPath} /passive /uninstall`, {
stdio: 'inherit'
});
fs.rmdirSync(tempPath);
console.log("PordaPy Installed!");
} catch (err) {
console.log(err);
}
break;
}
// case 'darwin': {
// try {
// }
// }
}
}
@ -102,6 +135,7 @@ function getPythonDownloadLink() {
let current_download = body.substring(current_download_start, current_download_end);
let url = current_download;
console.log(url)
resolve(url);
});