Skip to content

Commit

Permalink
Upgrade DFX to 0.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anchpop committed Sep 18, 2024
1 parent ff2a12c commit e9c77f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,25 @@ if [[ "${TESTNET}" == "local" ]]; then
then
export REGISTRY_PATH="$(readlink -f "${REGISTRY}")"
fi
# Determine the operating system
OS_TYPE="$(uname)"
if [[ "$OS_TYPE" == "Darwin" ]]; then
BASE_PATH="$HOME/Library/Application Support/org.dfinity.dfx/network/local"
elif [[ "$OS_TYPE" == "Linux" ]]; then
BASE_PATH="$HOME/.local/share/dfx/network/local"
else
echo "Unsupported OS type: $OS_TYPE"
exit 1
fi

# Find the ic_registry_local_store directory within the base path
REGISTRY_FOUND=$(find "$BASE_PATH" -type d -name ic_registry_local_store 2>/dev/null | head -n 1)

# If the directory is found, set REGISTRY_PATH to its absolute path
if [[ -d "$REGISTRY_FOUND" ]]; then
export REGISTRY_PATH="$(readlink -f "$REGISTRY_FOUND")"
fi

if [[ -z "${REGISTRY_PATH}" ]]
then
echo "Local registry not found!"
Expand Down
2 changes: 1 addition & 1 deletion settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ export IC_COMMIT="f79476803e097d9fd5f7e67d45f6818348b51ac9"

export TESTNET="local"

export DFX_VERSION="0.19.0"
export DFX_VERSION="0.22.0"
export DFX_SNS_VERSION="0.4.1"
export DFX_NNS_VERSION="0.4.1"

0 comments on commit e9c77f2

Please sign in to comment.