mirror of
https://github.com/HolographicHat/Yae.git
synced 2026-03-29 07:49:46 +08:00
Fix
This commit is contained in:
@@ -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 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
8
utils.js
8
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const version = {
|
||||
code: 8,
|
||||
name: "1.7.0",
|
||||
isDev: true
|
||||
isDev: false
|
||||
}
|
||||
|
||||
module.exports = { version }
|
||||
|
||||
Reference in New Issue
Block a user