mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-04-05 16:05:46 +00:00
23 lines
712 B
Bash
Executable File
23 lines
712 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Install Python (Poetry) and Node (pnpm) dependencies for native Electron builds.
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
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
|