From 04a09b97fe98ab02cdb10b7df231cc7e0fe97932 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 16 Oct 2023 10:40:09 +0800 Subject: [PATCH] chore: bump version to v0.1.5 --- Cargo.lock | 12 ++++++------ adaptor/Cargo.toml | 2 +- app/Cargo.toml | 2 +- config/Cargo.toml | 2 +- config/preset/theme.toml | 2 +- config/src/boot/boot.rs | 3 +-- core/Cargo.toml | 2 +- plugin/Cargo.toml | 2 +- build.sh => scripts/build.sh | 6 ++++++ scripts/bump.sh | 10 ++++++++++ shared/Cargo.toml | 2 +- 11 files changed, 30 insertions(+), 15 deletions(-) rename build.sh => scripts/build.sh (87%) create mode 100755 scripts/bump.sh diff --git a/Cargo.lock b/Cargo.lock index 51fc9a5b..c0f7bf4f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "adaptor" -version = "0.1.0" +version = "0.1.5" dependencies = [ "anyhow", "base64", @@ -123,7 +123,7 @@ checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" [[package]] name = "app" -version = "0.1.0" +version = "0.1.5" dependencies = [ "adaptor", "ansi-to-tui", @@ -359,7 +359,7 @@ dependencies = [ [[package]] name = "config" -version = "0.1.0" +version = "0.1.5" dependencies = [ "anyhow", "clap", @@ -379,7 +379,7 @@ dependencies = [ [[package]] name = "core" -version = "0.1.0" +version = "0.1.5" dependencies = [ "adaptor", "anyhow", @@ -1355,7 +1355,7 @@ dependencies = [ [[package]] name = "plugin" -version = "0.1.0" +version = "0.1.5" dependencies = [ "anyhow", "config", @@ -1641,7 +1641,7 @@ dependencies = [ [[package]] name = "shared" -version = "0.1.0" +version = "0.1.5" dependencies = [ "anyhow", "crossterm", diff --git a/adaptor/Cargo.toml b/adaptor/Cargo.toml index d7c52766..e1bd855b 100644 --- a/adaptor/Cargo.toml +++ b/adaptor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "adaptor" -version = "0.1.0" +version = "0.1.5" edition = "2021" [dependencies] diff --git a/app/Cargo.toml b/app/Cargo.toml index a0dc9e20..7fe24117 100644 --- a/app/Cargo.toml +++ b/app/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "app" -version = "0.1.0" +version = "0.1.5" edition = "2021" [dependencies] diff --git a/config/Cargo.toml b/config/Cargo.toml index 81eb60df..7f398c97 100644 --- a/config/Cargo.toml +++ b/config/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "config" -version = "0.1.0" +version = "0.1.5" edition = "2021" [dependencies] diff --git a/config/preset/theme.toml b/config/preset/theme.toml index 92e6c505..cd0ec343 100644 --- a/config/preset/theme.toml +++ b/config/preset/theme.toml @@ -6,7 +6,7 @@ cwd = { fg = "cyan" } # Hovered -hovered = { fg = "#000000", bg = "blue" } +hovered = { fg = "black", bg = "blue" } preview_hovered = { underline = true } # Find diff --git a/config/src/boot/boot.rs b/config/src/boot/boot.rs index 3f81ccae..df3a207e 100644 --- a/config/src/boot/boot.rs +++ b/config/src/boot/boot.rs @@ -15,8 +15,7 @@ pub struct Boot { } #[derive(Debug, Parser)] -#[command(name = "yazi")] -#[command(version = "0.1.4")] +#[command(name = "yazi", version)] struct Args { /// Set the current working directory #[arg(index = 1)] diff --git a/core/Cargo.toml b/core/Cargo.toml index 2fb3d070..f0ba6e47 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "core" -version = "0.1.0" +version = "0.1.5" edition = "2021" [dependencies] diff --git a/plugin/Cargo.toml b/plugin/Cargo.toml index 1cb5b58b..c475fa60 100644 --- a/plugin/Cargo.toml +++ b/plugin/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "plugin" -version = "0.1.0" +version = "0.1.5" edition = "2021" [dependencies] diff --git a/build.sh b/scripts/build.sh similarity index 87% rename from build.sh rename to scripts/build.sh index d97acdee..43c06423 100755 --- a/build.sh +++ b/scripts/build.sh @@ -1,3 +1,9 @@ +#!/bin/bash +set -euo pipefail + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $SCRIPT_DIR/.. + cargo +stable build --release --target aarch64-apple-darwin cargo +stable build --release --target x86_64-apple-darwin cargo +stable build --release --target x86_64-unknown-linux-gnu diff --git a/scripts/bump.sh b/scripts/bump.sh new file mode 100755 index 00000000..4cc42a31 --- /dev/null +++ b/scripts/bump.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -euo pipefail + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $SCRIPT_DIR/.. + +echo "Bumping version: $1" + +TOML_FILES="$(git ls-files '*Cargo.toml')" +perl -pi -e "s/^version = .*\$/version = \"$1\"/" $TOML_FILES diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 3681f8b1..b89388a1 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shared" -version = "0.1.0" +version = "0.1.5" edition = "2021" [dependencies]