osInfo() uefi fix windows
This commit is contained in:
parent
40267a458d
commit
79f4269c5f
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.19.1 | 2020-01-14 | `osInfo()` uefi fix windows |
|
||||
| 4.19.0 | 2020-01-12 | `osInfo()` added uefi |
|
||||
| 4.18.3 | 2020-01-10 | `fsSize()` fix excluding loop/snap devices |
|
||||
| 4.18.2 | 2020-01-10 | `memLayout()` fix memsize linux (modules >= 32 GB) |
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.19.1</th>
|
||||
<td>2020-01-14</td>
|
||||
<td><span class="code">osInfo()</span> uefi fix windows</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.19.0</th>
|
||||
<td>2020-01-12</td>
|
||||
|
||||
@ -168,7 +168,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span></div>
|
||||
<div class="version">Current Version: <span id="version">4.19.0</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.19.1</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
@ -206,7 +206,7 @@
|
||||
<div class="title">Downloads last month</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
<div class="numbers">235</div>
|
||||
<div class="numbers">236</div>
|
||||
<div class="title">Dependends</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -336,13 +336,17 @@ function isUefiLinux() {
|
||||
function isUefiWindows() {
|
||||
return new Promise((resolve) => {
|
||||
process.nextTick(() => {
|
||||
exec('%windir%\\Panther\\setupact.log | findstr "Detected boot environment" ', util.execOptsWin, function (error, stdout) {
|
||||
try {
|
||||
exec('type %windir%\\Panther\\setupact.log | findstr "Detected boot environment" ', util.execOptsWin, function (error, stdout) {
|
||||
if (!error) {
|
||||
const line = stdout.toString().split('\n\r')[0];
|
||||
resolve(line.toLowerCase().indexOf('uefi') >= 0);
|
||||
}
|
||||
resolve(false);
|
||||
});
|
||||
} catch(e) {
|
||||
resolve(false);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user