0.0.2
parent
0fb1c80a28
commit
adefc7bfc5
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
});
|
||||||
Reference in New Issue