diff --git a/lib/binding-arm64.node b/lib/binding-arm64.node new file mode 100644 index 0000000..2d6a11f Binary files /dev/null and b/lib/binding-arm64.node differ diff --git a/lib/main.js b/lib/main.js index ee6210b..3e0bab3 100644 --- a/lib/main.js +++ b/lib/main.js @@ -28,11 +28,10 @@ function getWindowsMajorVersion() { if ( typeof process !== 'undefined' && process.platform === 'win32' && - process.arch === 'x64' && getWindowsMajorVersion() >= 10 ) { try { - module.exports = require('./binding.node'); + module.exports = process.arch ==="arm64" ? require('./binding-arm64.node') : require('./binding.node'); } catch (error) { console.error(error); module.exports = require('./NodeRT_Windows_Security_Credentials_UI.d'); diff --git a/package.json b/package.json index fbc4fc4..628858b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "electron-windows-security", - "version": "0.0.4", + "version": "0.0.5", "description": "Use the Windows.Security.Credentials.UI UWP API directly from Node.js", "main": "lib/main.js", "scripts": {