Added support for Streamdeck Pedal and updated UI to better fit the Packed UI style

This commit is contained in:
2026-02-27 22:47:08 +01:00
committed by erik
parent 5a70f775f1
commit 93faae5cc8
1463 changed files with 306917 additions and 0 deletions

125
node_modules/pkg-prebuilds/bin/copy.mjs generated vendored Executable file
View File

@@ -0,0 +1,125 @@
#!/usr/bin/env node
import fs from 'fs'
import path from 'path'
import os from 'os'
import { createRequire } from 'module'
import { getPrebuildName } from '../lib/prebuild.js'
import cp from 'child_process'
/**
* Rename a binding file and move to the prebuilds folder, named according to the supplied parameters.
*/
const require = createRequire(import.meta.url)
const version = require('../package').version
const yargs = require('yargs')
.usage('pkg-prebuilds ' + version + '\n\nUsage: $0 [<command>] [options]')
.version(version)
.options({
baseDir: {
demand: true,
describe: 'base path to built binary files',
type: 'string',
},
source: {
demand: true,
describe: 'filename of built binary file',
type: 'string',
},
name: {
demand: true,
describe: 'name of the module',
type: 'string',
},
strip: {
demand: false,
describe: 'strip file of debug symbols',
type: 'boolean',
},
libc: {
demand: false,
describe: 'libc environment',
type: 'string',
},
napi_version: {
demand: true,
describe: 'node-api version',
type: 'string',
},
runtime: {
demand: false,
describe: 'runtime',
type: 'string',
},
arch: {
demand: false,
describe: 'override the architecture',
type: 'string',
},
platform: {
demand: false,
describe: 'override the platform',
type: 'string',
},
extraFiles: {
demand: false,
describe: 'extra files to copy',
type: 'string',
},
})
const argv = yargs.argv
const targetDir = path.join(process.cwd(), 'prebuilds')
const sourceDir = path.join(process.cwd(), argv.baseDir)
const sourceFile = path.join(sourceDir, argv.source)
if (!fs.existsSync(sourceFile)) {
console.error(`Built binary does not exist!`)
process.exit(1)
}
let libc = argv.libc
if (libc === 'glibc') libc = null
// Determine the target filename
const prebuildName = getPrebuildName({
arch: argv.arch || os.arch(),
platform: argv.platform || os.platform(),
name: argv.name,
libc: libc,
napi_version: argv.napi_version,
runtime: argv.runtime || 'node',
})
const destFile = path.join(targetDir, prebuildName)
const destDir = path.dirname(destFile)
// Make sure the directory exists
if (!fs.existsSync(destDir)) {
fs.mkdirSync(destDir, { recursive: true })
}
// Copy the bindings file
fs.copyFileSync(sourceFile, destFile)
if (argv.strip) {
if (os.platform() === 'linux') {
cp.spawnSync('strip', [destFile, '--strip-all'])
} else if (os.platform() === 'darwin') {
cp.spawnSync('strip', [destFile, '-Sx'])
}
}
// copy any extra files that have been requested, typically libraries needed
if (argv.extraFiles) {
const extraFiles = Array.isArray(argv.extraFiles) ? argv.extraFiles : [argv.extraFiles]
for (const file of extraFiles) {
fs.copyFileSync(path.join(sourceDir, file), path.join(destDir, file))
}
}
console.log('Done')

43
node_modules/pkg-prebuilds/bin/verify.mjs generated vendored Executable file
View File

@@ -0,0 +1,43 @@
#!/usr/bin/env node
import path from 'path'
import { createRequire } from 'module'
import loadBinding from '../bindings.js'
/**
* Equivalent of the prebuild-install command.
* It expects a single parameter of path to a file containing the options passed when using require with the binding.
* This makes sure that there is a binding available for the current architecture and platform,
* or the one specified by the npm_config_* environment variables.
*/
if (process.env.npm_config_build_from_source) {
// Force a build from source
process.exit(1)
}
if (process.argv.length < 3) {
console.error(`Missing path to binding options`)
process.exit(1)
}
const require = createRequire(import.meta.url)
try {
// Load the options file
const optionsPath = path.join(process.cwd(), process.argv[2])
const options = require(optionsPath)
// Find the correct bindings file
const resolvedPath = loadBinding.resolve(process.cwd(), options, true)
// Report result
if (resolvedPath) {
process.exit(0)
} else {
process.exit(1)
}
} catch (e) {
console.error(`Failed to check for bindings file!: ${e}`)
process.exit(1)
}