From 0721c0d7d4fea280c05a448332c80fc6bb628c0d Mon Sep 17 00:00:00 2001 From: Zedifus Date: Sat, 8 Oct 2022 18:34:38 +0100 Subject: [PATCH 1/2] Strip meta from sem version --- .github/workflows/docker-build.yml | 3 +-- .gitlab/docker-build.yml | 6 ++---- app/classes/shared/helpers.py | 3 +-- app/config/version.json | 3 +-- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index b2efb520..20fe20f9 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -58,8 +58,7 @@ jobs: MAJOR=$(cat app/config/version.json | jq '.major' ) MINOR=$(cat app/config/version.json | jq '.minor' ) SUB=$(cat app/config/version.json | jq '.sub' ) - META=$(cat app/config/version.json | jq -r '.meta' ) - echo "::set-output name=version::$MAJOR.$MINOR.$SUB-$META" + echo "::set-output name=version::$MAJOR.$MINOR.$SUB" - name: Get branch tag id: branch diff --git a/.gitlab/docker-build.yml b/.gitlab/docker-build.yml index 49725030..5cd4233a 100644 --- a/.gitlab/docker-build.yml +++ b/.gitlab/docker-build.yml @@ -17,7 +17,6 @@ docker-build-dev: MAJOR=$(cat app/config/version.json | jq '.major' ) MINOR=$(cat app/config/version.json | jq '.minor' ) SUB=$(cat app/config/version.json | jq '.sub' ) - META=$(cat app/config/version.json | jq -r '.meta' ) - | apk --no-cache add curl latest_tag=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p') @@ -33,7 +32,7 @@ docker-build-dev: script: - | tag=":$CI_COMMIT_REF_SLUG" - VERSION="${MAJOR}.${MINOR}.${SUB}-${META}" + VERSION="${MAJOR}.${MINOR}.${SUB}" - | echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" echo "Crafty Version: $VERSION" @@ -72,7 +71,6 @@ docker-build-prod: MAJOR=$(cat app/config/version.json | jq '.major' ) MINOR=$(cat app/config/version.json | jq '.minor' ) SUB=$(cat app/config/version.json | jq '.sub' ) - META=$(cat app/config/version.json | jq -r '.meta' ) - | apk --no-cache add curl latest_tag=$(curl -s https://api.github.com/repos/docker/buildx/releases/latest | sed -Ene '/^ *"tag_name": *"(v.+)",$/s//\1/p') @@ -88,7 +86,7 @@ docker-build-prod: script: - | tag="" - VERSION="${MAJOR}.${MINOR}.${SUB}-${META}" + VERSION="${MAJOR}.${MINOR}.${SUB}" - | echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" echo "Crafty Version: $VERSION" diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index 06779dc7..c4d9ad10 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -450,10 +450,9 @@ class Helpers: major = version_data.get("major", "?") minor = version_data.get("minor", "?") sub = version_data.get("sub", "?") - meta = version_data.get("meta", "?") # set some defaults if we don't get version_data from our helper - version = f"{major}.{minor}.{sub}-{meta}" + version = f"{major}.{minor}.{sub}" return str(version) def encode_pass(self, password): diff --git a/app/config/version.json b/app/config/version.json index a3b99705..2dece081 100644 --- a/app/config/version.json +++ b/app/config/version.json @@ -1,6 +1,5 @@ { "major": 4, "minor": 0, - "sub": 16, - "meta": "beta" + "sub": 16 } From cbd84f5b1ae71482ca04f474d31e56a077a91131 Mon Sep 17 00:00:00 2001 From: Zedifus Date: Sat, 8 Oct 2022 19:00:41 +0100 Subject: [PATCH 2/2] Update README v4.0.16 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f211adf8..babfc564 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Supported Python Versions](https://shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20-blue)](https://www.python.org) -[![Version(temp-hardcoded)](https://img.shields.io/badge/release-v4.0.16--beta-orange)](https://gitlab.com/crafty-controller/crafty-4/-/releases) -[![Code Quality(temp-hardcoded)](https://img.shields.io/badge/code%20quality-10-brightgreen)](https://gitlab.com/crafty-controller/crafty-4) +[![Version](https://img.shields.io/badge/release-v4.0.16-blue)](https://gitlab.com/crafty-controller/crafty-4/-/releases) +[![Code Quality](https://img.shields.io/badge/code%20quality-10-brightgreen)](https://gitlab.com/crafty-controller/crafty-4) [![Build Status](https://gitlab.com/crafty-controller/crafty-4/badges/master/pipeline.svg)](https://gitlab.com/crafty-controller/crafty-4/-/commits/master) - -# Crafty Controller 4.0.15-beta +[![Licence](https://img.shields.io/gitlab/license/20430749)](https://gitlab.com/crafty-controller/crafty-4/-/blob/master/LICENSE) +# Crafty Controller 4.0.16 > Python based Control Panel for your Minecraft Server ## What is Crafty Controller?