From 734a3778788d07bdaf96691af89b9d9e57c32f23 Mon Sep 17 00:00:00 2001 From: Eason010212 <1371033826@qq.com> Date: Sat, 11 Mar 2023 12:02:01 +0800 Subject: [PATCH] 111 --- mixio.js | 16 +++++++++++----- pkg_tools/linux-arm64-pkg.sh | 5 ----- pkg_tools/win-x64-pkg.sh | 5 ----- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/mixio.js b/mixio.js index b927fa0..ea810eb 100644 --- a/mixio.js +++ b/mixio.js @@ -2233,15 +2233,21 @@ init(function(res){ [Install] WantedBy=multi-user.target " - echo "${service}" > /etc/systemd/system/mixio.service + echo "$`+`{service}" > /etc/systemd/system/mixio.service ` - //exec shell - exec(install_shell, function(err, stdout){ - if(err) + //output shell script to install.sh + fs.writeFileSync("install.sh", install_shell) + //run install.sh + exec('sh install.sh', function(err, stdout, stderr) { + if (err) { console.log(err) + } else + { console.log(stdout) - }) + } + } + ) } else if (args[0] == "help") { diff --git a/pkg_tools/linux-arm64-pkg.sh b/pkg_tools/linux-arm64-pkg.sh index a3c826e..921824e 100644 --- a/pkg_tools/linux-arm64-pkg.sh +++ b/pkg_tools/linux-arm64-pkg.sh @@ -1,10 +1,5 @@ curpath=$(cd "$(dirname "$0")"; pwd) cd ${curpath} -version="{ - \"version\":\"1.11.0\", - \"platform\":\"linux-arm64\", - \"node-version\":\"16\" -}" cd ../../ rm -rf mixio_linux_arm64 mkdir mixio_linux_arm64 diff --git a/pkg_tools/win-x64-pkg.sh b/pkg_tools/win-x64-pkg.sh index bbd9758..f437466 100644 --- a/pkg_tools/win-x64-pkg.sh +++ b/pkg_tools/win-x64-pkg.sh @@ -1,10 +1,5 @@ curpath=$(cd "$(dirname "$0")"; pwd) cd ${curpath} -version="{ - \"version\":\"1.10.0\", - \"platform\":\"win-x64\", - \"node-version\":\"16\" -}" cd ../../ rm -rf mixio_win_x64 mkdir mixio_win_x64