Native addon linker for Bare.
npm i [-g] bare-link
const link = require('bare-link')
for await (const resource of link('/path/to/module', { hosts: ['darwin-arm64', 'ios-arm64'] })) {
console.log(resource)
}
bare-link --host darwin-arm64 --host ios-arm64
for await (const resource of link([base][, options]))Options include:
options = {
hosts: [],
out: '.',
preset,
sign: false,
// Apple signing options
identity: 'Apple Development',
keychain,
// Windows signing options
subject,
subjectName,
thumbprint
}
bare-link [flags] [entry]Flags include:
--version|-v Print the current version
--host <host> The host to target
--out|-o <dir> The output directory
--preset <name> Apply an option preset
--sign Sign the library
--identity <id> The macOS signing identity
--keychain <name> The macOS signing keychain
--subject <id> The Windows signing subject
--subject-name <name> The Windows signing subject friendly name
--thumbprint <sha1> The Windows signing subject thumbprint
--help|-h Show help
Apache-2.0