From a23ae8b520c4f84533b187d3a842de68a16f3825 Mon Sep 17 00:00:00 2001 From: zoocityboy Date: Thu, 16 Jan 2025 11:49:19 +0100 Subject: [PATCH] chore: Update CHANGELOG and enhance README for better presentation --- CHANGELOG.md | 5 ++++- README.md | 12 +++++++++--- tool/publish.sh | 37 ++++++++++++++++++++++++++++++++----- 3 files changed, 45 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29600c1..d4ff227 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,13 @@ +## 1.0.0+2 +- style: fix code style + ## 1.0.0+1 - doc: images in readme + ## 1.0.0 **BREAKING: ** * api request moved to service * Doki is singleton now ## 0.0.1 - * Testing upload diff --git a/README.md b/README.md index 94c2708..963509c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ -Doki Dont kill my app! + + + + Doki Dont kill my app! + + +
Developed by ๐Ÿฆ [zoocityboy][zoocityboy_link] @@ -60,11 +66,11 @@ DokiBadgeWidget( This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ------------------- - - + Flutter developer Zoocityboy +Flutter developer Zoocityboy [logo_black]:https://raw.githubusercontent.com/zoocityboy/zoo_brand/main/styles/README/zoocityboy_dark.png#gh-light-mode-only diff --git a/tool/publish.sh b/tool/publish.sh index c6c192a..7bf82c6 100644 --- a/tool/publish.sh +++ b/tool/publish.sh @@ -1,6 +1,33 @@ -#!/bin/sh -mv README.md README.md.bak -mv README_publish.md README.md +#!/bin/bash + +# Make script exit on first error +set -e + +# Store the script's directory +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +PROJECT_DIR="$(dirname "$SCRIPT_DIR")" + +echo "๐Ÿ“ฆ Preparing files for publishing..." + +# Create temporary README for publishing +cp "$PROJECT_DIR/README.md" "$PROJECT_DIR/README.md.bak" + +# Remove github-specific elements and comments +sed -i '' \ + -e '//,//d' \ + -e '/