Skip to content

Commit

Permalink
Rename releases (#29)
Browse files Browse the repository at this point in the history
# Motivation
`dfx-releases` needs explanation. `dfx-software` is more
self-explanatory

# Changes
- Rename `dfx-releases` to `dfx-software`
  • Loading branch information
bitdivine authored Dec 12, 2022
1 parent 403ea28 commit 8d55b62
Show file tree
Hide file tree
Showing 22 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
echo "/usr/local/bin" >> $GITHUB_PATH
echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
- name: Install more
run: ./bin/dfx-releases-more-install
run: ./bin/dfx-software-more-install
- name: Install dfx
run: ./bin/dfx-releases-dfx-install
run: ./bin/dfx-software-dfx-install
- name: Install quill
run: ./bin/dfx-releases-quill-install
run: ./bin/dfx-software-quill-install
- name: Install idl2json
run: ./bin/dfx-releases-idl2json-install
run: ./bin/dfx-software-idl2json-install
- name: Run the demo with the current default ic commits
run: bin/demo-cli
# demo_latest:
Expand All @@ -64,9 +64,9 @@ jobs:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Install dfx
# run: ./bin/dfx-releases-dfx-install
# run: ./bin/dfx-software-dfx-install
# - name: Install quill
# run: ./bin/dfx-releases-quill-install
# run: ./bin/dfx-software-quill-install
# - name: Checkout ic repo
# uses: actions/checkout@v3
# with:
Expand Down
6 changes: 3 additions & 3 deletions bin/demo-cli
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ cd "$(dirname "$(realpath "$0")")/.."
demo-cleanup

# If ic-commit is specified, get execuables from there:
[[ "${IC_COMMIT:-}" != "latest" ]] || IC_COMMIT="$(dfx-releases ic latest)"
[[ "${IC_COMMIT:-}" != "" ]] || IC_COMMIT="$(dfx-releases ic current)"
[[ "${IC_COMMIT:-}" != "latest" ]] || IC_COMMIT="$(dfx-software ic latest)"
[[ "${IC_COMMIT:-}" != "" ]] || IC_COMMIT="$(dfx-software ic current)"
rm -fr "$DEMO_BIN"
dfx-releases ic install-executable --commit "$IC_COMMIT" --bin "$DEMO_BIN" ic-admin sns
dfx-software ic install-executable --commit "$IC_COMMIT" --bin "$DEMO_BIN" ic-admin sns
echo "Using binaries from ic commit: $IC_COMMIT"

./bin/demo-system-subnet
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mkdir -p "$USER_BIN"

[[ "${IC_COMMIT}" != "latest" ]] || {
echo "Finding the latest commit..."
IC_COMMIT="$(dfx-releases ic latest)"
IC_COMMIT="$(dfx-software ic latest)"
}

echo "Installing $*"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ optparse.define short=b long=bin desc="Local directory for executables" variable
source "$(optparse.build)"
set -euo pipefail

[[ "${IDL2JSON_VERSION:-}" != "latest" ]] || IDL2JSON_VERSION="$(dfx-releases-idl2json-latest)"
[[ "${IDL2JSON_VERSION:-}" != "latest" ]] || IDL2JSON_VERSION="$(dfx-software-idl2json-latest)"

mkdir -p "$USER_BIN"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ optparse.define short=b long=bin desc="Local directory for executables" variable
source "$(optparse.build)"
set -euo pipefail

[[ "${QUILL_VERSION:-}" != "latest" ]] || QUILL_VERSION="$(dfx-releases-quill-latest)"
[[ "${QUILL_VERSION:-}" != "latest" ]] || QUILL_VERSION="$(dfx-software-quill-latest)"
QUILL_VERSION="${QUILL_VERSION#v}" # change v1.2.3 to 1.2.3 to match download URLs

mkdir -p "$USER_BIN"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ optparse.define short=b long=bin desc="Local directory for executables" variable
source "$(optparse.build)"
set -euo pipefail

[[ "${QUILL_VERSION:-}" != "latest" ]] || QUILL_VERSION="$(dfx-releases-sns-quill-latest)"
[[ "${QUILL_VERSION:-}" != "latest" ]] || QUILL_VERSION="$(dfx-software-sns-quill-latest)"

mkdir -p "$USER_BIN"

Expand Down
File renamed without changes.

0 comments on commit 8d55b62

Please sign in to comment.