Update a tool name
This commit is contained in:
parent
01419cb676
commit
329a34cbdb
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "clin"
|
name = "dudo"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ RUN cargo build --release
|
|||||||
|
|
||||||
|
|
||||||
FROM alpine:3.17.1
|
FROM alpine:3.17.1
|
||||||
COPY --from=builder /src/target/release/clin /bin/clin
|
COPY --from=builder /src/target/release/dudo /bin/dudo
|
||||||
RUN apk update && apk add --no-cache libressl-dev libc6-compat
|
RUN apk update && apk add --no-cache libressl-dev libc6-compat
|
||||||
RUN chmod +x /bin/clin
|
RUN chmod +x /bin/dudo
|
||||||
WORKDIR /workdir
|
WORKDIR /workdir
|
||||||
ENTRYPOINT ["/bin/clin"]
|
ENTRYPOINT ["/bin/dudo"]
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# Clever Install (clin)
|
# Dumb Downloader (dudo)
|
||||||
> It's actually not and installer, but a downloader, clin just sounds better than cldow IMHO
|
|
||||||
|
|
||||||
# What's it about?
|
# What's it about?
|
||||||
It's just a tool to make downloading binaries for different platforms easier.
|
It's just a tool to make downloading binaries for different platforms easier.
|
||||||
@ -33,15 +32,15 @@ Prebuilt binaries exist for **Linux x86_64** and **MacOS arm64** and **x86_64**
|
|||||||
|
|
||||||
Don't forget to add the binary to $PATH
|
Don't forget to add the binary to $PATH
|
||||||
```
|
```
|
||||||
$ curl https://raw.githubusercontent.com/allanger/clever-install/main/scripts/download_clin.sh | bash
|
$ curl https://raw.githubusercontent.com/allanger/clever-install/main/scripts/download_dudo.sh | bash
|
||||||
$ clin -h
|
$ dudo -h
|
||||||
```
|
```
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
You can use the `latest` or a `tagged` docker image
|
You can use the `latest` or a `tagged` docker image
|
||||||
```
|
```
|
||||||
$ docker pull ghcr.io/allanger/clever-install:latest
|
$ docker pull ghcr.io/allanger/clever-install:latest
|
||||||
$ docker run ghcr.io/allanger/clever-install:latest clin -h
|
$ docker run ghcr.io/allanger/clever-install:latest dudo -h
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build from source
|
### Build from source
|
||||||
|
@ -36,15 +36,15 @@ esac
|
|||||||
LATEST_VERSION="v$(curl -s https://raw.githubusercontent.com/allanger/clever-install/main/Cargo.toml | awk -F ' = ' '$1 ~ /version/ { gsub(/[\"]/, "", $2); printf("%s",$2); exit}')"
|
LATEST_VERSION="v$(curl -s https://raw.githubusercontent.com/allanger/clever-install/main/Cargo.toml | awk -F ' = ' '$1 ~ /version/ { gsub(/[\"]/, "", $2); printf("%s",$2); exit}')"
|
||||||
echo "Downloading $LATEST_VERSION"
|
echo "Downloading $LATEST_VERSION"
|
||||||
|
|
||||||
RELEASE_NAME=clin-$LATEST_VERSION-$TARGET
|
RELEASE_NAME=dudo-$LATEST_VERSION-$TARGET
|
||||||
RELEASE_URL="https://github.com/allanger/clever-install/releases/download/$LATEST_VERSION/$RELEASE_NAME"
|
RELEASE_URL="https://github.com/allanger/clever-install/releases/download/$LATEST_VERSION/$RELEASE_NAME"
|
||||||
echo "Link for downloading: $RELEASE_URL"
|
echo "Link for downloading: $RELEASE_URL"
|
||||||
curl -LJO $RELEASE_URL
|
curl -LJO $RELEASE_URL
|
||||||
|
|
||||||
mv $RELEASE_NAME clin
|
mv $RELEASE_NAME dudo
|
||||||
chmod +x clin
|
chmod +x dudo
|
||||||
|
|
||||||
echo 'Make sure that clin is in your $PATH'
|
echo 'Make sure that dudo is in your $PATH'
|
||||||
echo 'Try: '
|
echo 'Try: '
|
||||||
echo ' $ export PATH=$PATH:$PWD'
|
echo ' $ export PATH=$PATH:$PWD'
|
||||||
echo ' $ clin -h'
|
echo ' $ dudo -h'
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo 'renaming clin to clin-$VERSION-$SYSTEM format'
|
echo 'renaming dudo to dudo-$VERSION-$SYSTEM format'
|
||||||
mkdir -p release
|
mkdir -p release
|
||||||
echo "version - $CLIN_VERSION"
|
echo "version - $CLIN_VERSION"
|
||||||
for BUILD in build*; do
|
for BUILD in build*; do
|
||||||
SYSTEM=$(echo $BUILD | sed -e 's/build-//g')
|
SYSTEM=$(echo $BUILD | sed -e 's/build-//g')
|
||||||
echo "system - $SYSTEM"
|
echo "system - $SYSTEM"
|
||||||
cp $BUILD/clin release/clin-$CLIN_VERSION-$SYSTEM
|
cp $BUILD/dudo release/dudo-$CLIN_VERSION-$SYSTEM
|
||||||
done
|
done
|
||||||
ls release
|
ls release
|
||||||
|
Loading…
Reference in New Issue
Block a user