0.0.2
parent
0fb1c80a28
commit
adefc7bfc5
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "portapy",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"postinstall": "node postinstall.js",
|
||||
"uninstall": "node uninstall.js"
|
||||
"preuninstall": "node uninstall.js"
|
||||
},
|
||||
"bin": {
|
||||
"python": "bin/python.js"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
const path = require('path');
|
||||
let pythonPath = path.resolve(__dirname, 'Python', 'python.exe');
|
||||
|
||||
require('child_process').exec(`${pythonPath} /passive /uninstall`);
|
||||
let pythonPath = path.resolve(__dirname, 'Python-Installer', 'python-3.7.1.exe');
|
||||
|
||||
require('child_process').execSync(`${pythonPath} /passive /uninstall`, {
|
||||
stdio: 'inherit'
|
||||
});
|
||||
Reference in New Issue