Files
anki/yarn
Christos Longros 2d88e386dc build: portability fixes for FreeBSD (#5300)
Two build fixes found while getting the build working on FreeBSD. 

1. **Remove hardcoded `#!/bin/bash` paths and use /usr/bin/env instead
/**
2. **env_remove("YARN_BINARY")**

Tested on FreeBSD 16.0-CURRENT amd64.

A second series adds FreeBSD support with `platform` variants,
environment overrides, PyQt6 handling and docs.

Closes #5301
2026-08-11 13:13:56 +03:00

11 lines
315 B
Bash
Executable File

#!/usr/bin/env bash
# Execute subcommand (eg 'yarn <cmd> ...')
set -e
export PATH="./out/extracted/node/bin:$PATH"
./out/extracted/node/bin/yarn $*
./node_modules/.bin/license-checker-rseidelsohn --production --json \
--excludePackages anki --relativeLicensePath \
--relativeModulePath > ts/licenses.json