Skip to content

Commit bc386d4

Browse files
authored
use vanity url get.digitalasset.com in manual installation instructions (#42)
* use vanity url in docs * include tmpdir cleanup
1 parent 9aa2fb7 commit bc386d4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/src/public/manual-install.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ If you cannot / wish not to use the shell script to install for Linux or OSX, yo
1414
.. code:: shell
1515
1616
#get latest version number
17-
readonly VERSION="$(curl -sS "https://get.digitalasset.com/install/latest")"
17+
VERSION="$(curl -sS "https://get.digitalasset.com/install/latest")"
1818
1919
# set your architecture to either amd64 | arm64
20-
readonly ARCH="$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')"
20+
ARCH="$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')"
2121
2222
# set your OS to either darwin or linux
23-
readonly OS="$(uname | tr '[:upper:]' '[:lower:]')"
23+
OS="$(uname | tr '[:upper:]' '[:lower:]')"
2424
2525
#pull down appropriate tarball for your OS and architecture
2626
readonly TARBALL="dpm-${VERSION}-${OS}-${ARCH}.tar.gz"
2727
2828
# determine location of tarball to download
29-
TARBALL_URL="https://artifactregistry.googleapis.com/download/v1/projects/da-images/locations/europe/repositories/public-generic/files/dpm-sdk:${VERSION}:${TARBALL}:download?alt=media"
29+
TARBALL_URL="https://get.digitalasset.com/install/dpm-sdk/${TARBALL}"
3030
3131
# make tmpdir
3232
TMPDIR="$(mktemp -d)"
@@ -38,12 +38,15 @@ If you cannot / wish not to use the shell script to install for Linux or OSX, yo
3838
extracted="${TMPDIR}/extracted"
3939
mkdir -p "${extracted}"
4040
41-
# untar
41+
# untar to extracted directory
4242
tar xzf "${TMPDIR}/${TARBALL}" -C "${extracted}" --strip-components 1
4343
4444
# bootstrap dpm
4545
"${extracted}/bin/dpm" bootstrap "${extracted}"
4646
47+
# cleanup tmpdir
48+
rm -rf "${TMPDIR}"
49+
4750
Windows
4851
-------
4952

0 commit comments

Comments
 (0)