kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
v1.0.177 test
rodzic
ed1b5fa2a4
commit
668b9aad60
7
index.js
7
index.js
|
@ -2433,6 +2433,13 @@ if (isElectron()) {
|
|||
})
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var isPi = require('detect-rpi');
|
||||
if (isPi()) {
|
||||
console.log('Running on Raspberry Pi!');
|
||||
} else {
|
||||
console.log("Running under NodeJS...");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "OpenBuildsCONTROL",
|
||||
"version": "1.0.175",
|
||||
"version": "1.0.176",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1735,6 +1735,11 @@
|
|||
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
|
||||
"integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups="
|
||||
},
|
||||
"detect-rpi": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/detect-rpi/-/detect-rpi-1.3.0.tgz",
|
||||
"integrity": "sha512-ASU7MUjfApF44MvFSvJxh1zwraLXgduCdcS2+bwmz2P75Cb0CxqXsFqPRh6zerMLQO+6SRA4ZSR9YdUZms3VxA=="
|
||||
},
|
||||
"directory-tree": {
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/directory-tree/-/directory-tree-2.2.3.tgz",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "OpenBuildsCONTROL",
|
||||
"version": "1.0.176",
|
||||
"version": "1.0.177",
|
||||
"license": "AGPL-3.0",
|
||||
"description": "Machine Interface Driver for OpenBuilds",
|
||||
"author": "github.com/openbuilds <webmaster@openbuilds.com>",
|
||||
|
@ -12,6 +12,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"avrgirl-arduino": "^3.0.0",
|
||||
"detect-rpi": "^1.3.0",
|
||||
"directory-tree": "^2.2.1",
|
||||
"electron-updater": "^4.0.6",
|
||||
"express": "^4.16.4",
|
||||
|
|
Ładowanie…
Reference in New Issue