diff --git a/install.sh b/install.sh index b45300a..dfc0071 100755 --- a/install.sh +++ b/install.sh @@ -139,7 +139,7 @@ install_dnote() { exit 1 fi - binary=dnote_doctor + binary=dnote-doctor owner=dnote repo=doctor github_download="https://github.com/${owner}/${repo}/releases/download" @@ -159,8 +159,8 @@ install_dnote() { # remove the preceding 'v' version="${version#v}" - checksum=${binary}_${version}_checksums.txt - filename=${binary}_${version}_${os}_${arch} + checksum=${binary}-${version}-checksums.txt + filename=${binary}-${version}-${os}-${arch} tarball="${filename}.tar.gz" binary_url="${github_download}/v${version}/${tarball}" checksum_url="${github_download}/v${version}/${checksum}" diff --git a/scripts/build.sh b/scripts/build.sh index 33a438e..f4e29d1 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -62,7 +62,7 @@ build() { get_buildname() { os=$1 - echo "dnote_doctor_${version}_${os}_amd64" + echo "dnote-doctor-${version}-${os}-amd64" } calc_checksum() { @@ -72,7 +72,7 @@ calc_checksum() { buildname=$(get_buildname "$os") mv dnote-doctor "$buildname" - shasum -a 256 "$buildname" >> "$TMP/dnote_doctor_${version}_checksums.txt" + shasum -a 256 "$buildname" >> "$TMP/dnote-doctor-${version}-checksums.txt" mv "$buildname" dnote-doctor popd