2020-12-12 11:56:28 +01:00
|
|
|
"use strict";
|
2020-06-27 21:02:48 +02:00
|
|
|
|
|
|
|
const os = require('os');
|
2020-12-12 11:56:28 +01:00
|
|
|
|
2020-06-27 21:02:48 +02:00
|
|
|
const process = require('process');
|
|
|
|
|
|
|
|
let arch = os.arch();
|
2020-12-12 11:56:28 +01:00
|
|
|
|
2020-06-27 21:02:48 +02:00
|
|
|
if (process.platform === 'win32' && process.env['PROCESSOR_ARCHITEW6432'] != null) {
|
|
|
|
arch = 'x64';
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
release: os.release(),
|
|
|
|
arch
|
|
|
|
};
|