mirror of
https://github.com/frida/frida-node.git
synced 2026-11-07 09:35:57 -10:00
Auto-generate Node-API bindings from .gir
Which means API changes in frida-core are instantly reflected, with only customizations needing tweaking, if applicable. And, since we now target Node-API there will now only be one prebuilt binary per OS/ABI. Co-authored-by: Håvard Sørbø <[email protected]>
This commit is contained in:
1 parent
4675cf8471
commit
e2ffd0aa6c
109 files changed
+8346
-9964
No files matched your search
+5
-4
@@ -1,8 +1,9 @@
|
||||
const { execSync } = require('child_process');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
import { execSync } from 'child_process';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const pkgRoot = path.dirname(path.dirname(__filename));
|
||||
const pkgRoot = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
|
||||
const binding = path.join(pkgRoot, 'build', 'frida_binding.node');
|
||||
if (fs.existsSync(binding)) {
|
||||
process.exit(0);
|
||||
|
||||
Reference in new issue
Block a user