|
|
@@ -1,7 +1,6 @@
|
|
|
'use strict';
|
|
|
|
|
|
const path = require('path');
|
|
|
-
|
|
|
const {app, webContents, shell} = require('electron');
|
|
|
const AutoLaunchManager = require('../lib/autoLaunch');
|
|
|
const shortcut = require('../lib/shortcut');
|
|
|
@@ -52,6 +51,17 @@ exports.autoLaunchIsEnabled = function () {
|
|
|
return isEnable
|
|
|
}
|
|
|
|
|
|
+exports.openSoftware = function (softName = '') {
|
|
|
+ if (!softName) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ let powershellPath = path.join(app.getAppPath(), "..", "tmp", softName);
|
|
|
+ console.log(powershellPath);
|
|
|
+
|
|
|
+ return true;
|
|
|
+}
|
|
|
+
|
|
|
function getElectronPath(filepath) {
|
|
|
//filepath = path.resolve(filepath);
|
|
|
filepath = filepath.replace("resources", "");
|