mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-04-28 06:16:43 +00:00
chore(package): update build scripts in package.json to use cross-env for platform-specific builds and add codec2 installation in GitHub CI script for macOS
This commit is contained in:
@@ -7,5 +7,16 @@ cd "$ROOT"
|
||||
|
||||
export GIT_TERMINAL_PROMPT=0
|
||||
|
||||
# pycodec2 builds against libcodec2
|
||||
if [[ "$(uname -s)" == "Darwin" ]]; then
|
||||
brew install codec2
|
||||
_codec2_prefix="$(brew --prefix codec2)"
|
||||
export CPPFLAGS="${CPPFLAGS:-} -I${_codec2_prefix}/include"
|
||||
export LDFLAGS="${LDFLAGS:-} -L${_codec2_prefix}/lib"
|
||||
if [[ -d "${_codec2_prefix}/lib/pkgconfig" ]]; then
|
||||
export PKG_CONFIG_PATH="${_codec2_prefix}/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
|
||||
fi
|
||||
fi
|
||||
|
||||
python -m poetry install --no-interaction --no-ansi
|
||||
pnpm install --frozen-lockfile
|
||||
|
||||
Reference in New Issue
Block a user