diff --git a/native/binding.gyp b/native/binding.gyp index 446ad3d..4faea00 100644 --- a/native/binding.gyp +++ b/native/binding.gyp @@ -3,12 +3,10 @@ { "target_name": "native", "sources": [ - "src/homu.h", "src/main.cc", "src/utils.h", "src/utils.cc", "src/define.h", - "src/homu.cpp", "src/wmi/wmi.cpp", "src/wmi/wmi.hpp", "src/wmi/unistd.h", @@ -47,4 +45,4 @@ } } ] -} \ No newline at end of file +} diff --git a/native/src/main.cc b/native/src/main.cc index 52435d9..0ea3718 100644 --- a/native/src/main.cc +++ b/native/src/main.cc @@ -1,4 +1,4 @@ -#include "homu.h" +//#include "homu.h" #include "utils.h" #include "define.h" #include "wmi/wmi.hpp" @@ -232,7 +232,7 @@ namespace native { Object init(Env env, Object exports) { exports.Set("pause", Function::New(env, Pause)); exports.Set("openUrl", Function::New(env, OpenUrl)); - exports.Set("homuInit", Function::New(env, Initialize)); + //exports.Set("homuInit", Function::New(env, Initialize)); exports.Set("getDeviceID", Function::New(env, GetDeviceID)); exports.Set("getMACAddress", Function::New(env, GetMACAddress)); exports.Set("getDeviceInfo", Function::New(env, GetDeviceInfo)); diff --git a/utils.js b/utils.js index 00c28a5..267f892 100644 --- a/utils.js +++ b/utils.js @@ -210,10 +210,10 @@ const checkUpdate = async () => { console.log(`有可用更新: ${version.name} => ${data["vn"]}`) console.log(`更新内容: \n${data["ds"]}`) console.log("下载地址: https://github.com/HolographicHat/YaeAchievement/releases") - } - if (data["fc"] === true) { - console.log(" * 这是一次强制更新") - process.exit(410) + if (data["fc"] === true) { + console.log(" * 这是一次强制更新") + process.exit(410) + } } } diff --git a/version.js b/version.js index a3e4faa..7d46a5e 100644 --- a/version.js +++ b/version.js @@ -1,7 +1,7 @@ const version = { code: 8, name: "1.7.0", - isDev: true + isDev: false } module.exports = { version }