gorcon / rcon-cli

RCON client for executing queries on game server.
MIT License
495 stars 45 forks source link

[Feature Request] Please add extended install/release instructions with hash-values #41

Open jammsen opened 9 months ago

jammsen commented 9 months ago

Hey @outdead how are you?

I would love to see extended install instructions in the release informations. Here is an example of what i mean by that: Supercronic ( https://github.com/aptible/supercronic/releases ) goes the "Ansible-check" way which is very helpful, to make sure you get what you wanted, because you can check the hashsum, and if by any chance thats wrong your ci-pipeline fails on purpose.

Would you be able to add extended install/release/package informations to your releases please?

jammsen commented 9 months ago

Something like this:

# Latest releases available at https://github.com/gorcon/rcon-cli/releases
ENV RCON_URL=https://github.com/gorcon/rcon-cli/releases/download/v0.10.3/rcon-0.10.3-amd64_linux.tar.gz \
    RCON_TGZ=rcon-0.10.3-amd64_linux.tar.gz \
    RCON_TGZ_MD5SUM=8601c70dcab2f90cd842c127f700e398 \
    RCON_BINARY=rcon

RUN curl -fsSLO "$RCON_URL" \
    && echo "${RCON_TGZ_MD5SUM} ${RCON_TGZ}" | md5sum -c - \
    && tar xfz rcon-0.10.3-amd64_linux.tar.gz \
    && chmod +x "rcon-0.10.3-amd64_linux/$RCON_BINARY" \
    && mv "rcon-0.10.3-amd64_linux/$RCON_BINARY" "/usr/local/bin/${RCON_BINARY}" \
    && ln -s "/usr/local/bin/${RCON_BINARY}" /usr/local/bin/rconcli \
    && rm -Rf rcon-0.10.3-amd64_linux rcon-0.10.3-amd64_linux.tar.gz
outdead commented 9 months ago

Hi! Great issue. Thanks! I'll add this to current release info (and to future releases to)

jammsen commented 9 months ago

Thank you very much!