mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 17:44:02 -05:00
Merge branch 'master' of https://github.com/UnstoppableSwap/core
This commit is contained in:
commit
d5b07370e8
4 changed files with 67 additions and 4 deletions
|
|
@ -297,16 +297,27 @@ copy_dlls() {
|
|||
}
|
||||
|
||||
setup_path() {
|
||||
export MINGW_TOOLCHAIN_DIR="$PREFIX/bin"
|
||||
|
||||
# Add to PATH only if not already present
|
||||
if [[ ":$PATH:" != *":$PREFIX/bin:"* ]]; then
|
||||
export PATH="$PREFIX/bin:$PATH"
|
||||
export PATH="$MINGW_TOOLCHAIN_DIR:$PATH"
|
||||
fi
|
||||
|
||||
# add path to bashrc
|
||||
# When running in GitHub Actions, export the toolchain dir for later steps
|
||||
if [ -n "${GITHUB_ENV:-}" ]; then
|
||||
echo "MINGW_TOOLCHAIN_DIR=$MINGW_TOOLCHAIN_DIR" >> "$GITHUB_ENV"
|
||||
fi
|
||||
|
||||
# Also add to GITHUB_PATH for GitHub Actions
|
||||
if [ -n "${GITHUB_PATH:-}" ]; then
|
||||
echo "$PREFIX/bin" >> "$GITHUB_PATH"
|
||||
fi
|
||||
|
||||
# Add path to .bashrc
|
||||
if ! grep -q "export PATH=\"$PREFIX/bin:\$PATH\"" ~/.bashrc; then
|
||||
echo "export PATH=\"$PREFIX/bin:\$PATH\"" >> ~/.bashrc
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
verify_installation() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue