From 346a5ce4dac38587b0be55d861593fbae756fc1d Mon Sep 17 00:00:00 2001 From: j03-dev <24nomeniavo@gmail.com> Date: Fri, 29 Nov 2024 10:43:50 +0300 Subject: [PATCH 1/3] chore: improve ux, installer --- docs/metatype.dev/shared/install/meta-cli.mdx | 2 +- installer.sh => docs/metatype.dev/static/installer.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename installer.sh => docs/metatype.dev/static/installer.sh (100%) diff --git a/docs/metatype.dev/shared/install/meta-cli.mdx b/docs/metatype.dev/shared/install/meta-cli.mdx index bade0ac89e..deece7d5af 100644 --- a/docs/metatype.dev/shared/install/meta-cli.mdx +++ b/docs/metatype.dev/shared/install/meta-cli.mdx @@ -11,7 +11,7 @@ executable and add it to your `PATH` or use the automated method below. - An installer script is also provided for the CLI in our repository. Curl and install in it with the following one-liner. The installer may ask for your password. ```bash - curl -fsSL https://raw.githubusercontent.com/metatypedev/metatype/main/installer.sh | bash + curl -fsSL https://metatype.dev/installer.sh | bash ``` :::info diff --git a/installer.sh b/docs/metatype.dev/static/installer.sh similarity index 100% rename from installer.sh rename to docs/metatype.dev/static/installer.sh From 7de367e9c7dc9a5791ea95c804450655c43a32bb Mon Sep 17 00:00:00 2001 From: j03-dev <24nomeniavo@gmail.com> Date: Mon, 2 Dec 2024 00:15:59 +0300 Subject: [PATCH 2/3] add progress bar and remove silent mode --- docs/metatype.dev/static/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/metatype.dev/static/installer.sh b/docs/metatype.dev/static/installer.sh index 6be2ebc745..e1df47b925 100755 --- a/docs/metatype.dev/static/installer.sh +++ b/docs/metatype.dev/static/installer.sh @@ -72,7 +72,7 @@ fi DOWNLOAD_URL="$RELEASE_URL/download/v$VERSION/$ASSET.$EXT" echo $DOWNLOAD_URL -if curl --fail --silent --location --output "$TMP_DIR/$ASSET.$EXT" "$DOWNLOAD_URL"; then +if curl --fail --location --progress-bar --output "$TMP_DIR/$ASSET.$EXT" "$DOWNLOAD_URL"; then printf "Downloaded successfully: %s\n" "$ASSET.$EXT" else cat >&2 < Date: Mon, 2 Dec 2024 00:29:54 +0300 Subject: [PATCH 3/3] change the installer url --- docs/metatype.dev/static/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/metatype.dev/static/installer.sh b/docs/metatype.dev/static/installer.sh index e1df47b925..307a0e292a 100755 --- a/docs/metatype.dev/static/installer.sh +++ b/docs/metatype.dev/static/installer.sh @@ -8,7 +8,7 @@ EXT=tar.gz NAME=meta-cli EXE=meta -INSTALLER_URL="https://raw.githubusercontent.com/$ORG/$REPO/main/installer.sh" +INSTALLER_URL="https://metatype.dev/install.sh" RELEASE_URL="https://github.com/$ORG/$REPO/releases" LATEST_VERSION=$(curl "$RELEASE_URL/latest" -s -L -I -o /dev/null -w '%{url_effective}')