mirror of
https://github.com/stablyai/orca.git
synced 2026-10-21 00:03:46 +00:00
fix(server): verify Windows npm shims by execution
This commit is contained in:
@@ -97,7 +97,7 @@ function verifyInventory(packed) {
|
||||
throw new Error(`tarball is missing ${required}`)
|
||||
}
|
||||
}
|
||||
if ((files.get('dist/cli.js')?.mode & 0o111) === 0) {
|
||||
if (process.platform !== 'win32' && (files.get('dist/cli.js')?.mode & 0o111) === 0) {
|
||||
throw new Error('CLI is not executable')
|
||||
}
|
||||
if (packed.unpackedSize > 100 * 1024 * 1024) {
|
||||
|
||||
Reference in New Issue
Block a user