-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1132
- Loading branch information
Showing
5 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,10 @@ set -euxo pipefail | |
git config --global user.name rtx-vm | ||
git config --global user.email [email protected] | ||
|
||
BASE_DIR="$(cd rtx && pwd)" | ||
RTX_VERSION=$(cd rtx && ./scripts/get-version.sh) | ||
RELEASE_DIR=releases | ||
export RTX_VERSION RELEASE_DIR | ||
export BASE_DIR RTX_VERSION RELEASE_DIR | ||
rm -rf "${RELEASE_DIR:?}/$RTX_VERSION" | ||
mkdir -p "$RELEASE_DIR/$RTX_VERSION" | ||
|
||
|
@@ -54,6 +55,7 @@ gpg --clearsign -u 408B88DB29DDE9E0 <SHASUMS512.txt >SHASUMS512.asc | |
popd | ||
|
||
./rtx/scripts/render-install.sh >"$RELEASE_DIR"/install.sh | ||
|
||
chmod +x "$RELEASE_DIR"/install.sh | ||
shellcheck "$RELEASE_DIR"/install.sh | ||
# TODO: figure out how to test this | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
BASE_DIR="$(pwd)" | ||
RELEASE_DIR="$(pwd)/tmp" | ||
RTX_VERSION="v$(curl -fsSL https://rtx.jdx.dev/VERSION)" | ||
export BASE_DIR RELEASE_DIR RTX_VERSION | ||
|
||
mkdir -p "$RELEASE_DIR/$RTX_VERSION" | ||
curl -fsSL "https://rtx.jdx.dev/$RTX_VERSION/SHASUMS256.txt" >"$RELEASE_DIR/$RTX_VERSION/SHASUMS256.txt" | ||
./scripts/render-install.sh >tmp/install.sh | ||
chmod +x tmp/install.sh | ||
shellcheck tmp/install.sh | ||
|
||
RTX_DATA_DIR="$RELEASE_DIR" ./tmp/install.sh | ||
if [[ ! "$("$RELEASE_DIR/bin/rtx" -v)" =~ ^${RTX_VERSION//v} ]]; then | ||
echo "rtx version mismatch" | ||
exit 1 | ||
fi |