Skip to content

Commit

Permalink
Fix default path of pub-cache and prevent patching twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
braniii committed Nov 14, 2023
1 parent f71e84d commit bd8cbf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/patch_pubdev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RIVE_COMMON_VERSION="$(grep -A7 -P '^..rive_common' pubspec.lock | sed -E -n -e
if [[ -v PUB_CACHE ]]; then
PUB_PATH="$PUB_CACHE"
else
PUB_PATH="$HOME/.pub_cache"
PUB_PATH="$HOME/.pub-cache"
fi

patch "${PUB_PATH}/hosted/pub.dev/rive_common-${RIVE_COMMON_VERSION}/premake5_rive_plugin.lua" "rive_common.patch"
patch -N "${PUB_PATH}/hosted/pub.dev/rive_common-${RIVE_COMMON_VERSION}/premake5_rive_plugin.lua" "rive_common.patch"

0 comments on commit bd8cbf1

Please sign in to comment.