master
Marcus 2018-10-30 20:19:30 -04:00
parent 0fb1c80a28
commit adefc7bfc5
2 changed files with 6 additions and 5 deletions

View File

@ -1,12 +1,12 @@
{ {
"name": "portapy", "name": "portapy",
"version": "0.0.1", "version": "0.0.2",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "node postinstall.js", "postinstall": "node postinstall.js",
"uninstall": "node uninstall.js" "preuninstall": "node uninstall.js"
}, },
"bin": { "bin": {
"python": "bin/python.js" "python": "bin/python.js"

View File

@ -1,5 +1,6 @@
const path = require('path'); const path = require('path');
let pythonPath = path.resolve(__dirname, 'Python', 'python.exe'); let pythonPath = path.resolve(__dirname, 'Python-Installer', 'python-3.7.1.exe');
require('child_process').exec(`${pythonPath} /passive /uninstall`);
require('child_process').execSync(`${pythonPath} /passive /uninstall`, {
stdio: 'inherit'
});