Skip to content

Commit

Permalink
pass 16
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Oct 7, 2023
1 parent dadf88b commit 0c74301
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions buildconfig/windependencies/build_win_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

set -e -x

# //\\// replaces all \ with / in the variable
export WIN_PREFIX_PATH="${GITHUB_WORKSPACE//\\//}/pygame_win_deps_${WIN_ARCH}"
# The below three lines convert something like D:\path\goes\here to /d/path/goes/here
export BASE_DIR=$(echo "$GITHUB_WORKSPACE" | tr '[:upper:]' '[:lower:]')
export BASE_DIR="${BASE_DIR//\\//}" # //\\// replaces all \ with / in the variable
export BASE_DIR="${BASE_DIR//:/}" # remove colon from drive part

export WIN_PREFIX_PATH="$BASE_DIR/pygame_win_deps_$WIN_ARCH"

export PKG_CONFIG_PATH="$WIN_PREFIX_PATH/lib/pkgconfig:$PKG_CONFIG_PATH"

Expand Down

0 comments on commit 0c74301

Please sign in to comment.