From 9b63315d5daed778e9a470f6d632e2ffe4a7fadb Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 15 Apr 2024 15:40:01 +0800 Subject: [PATCH] .. --- .github/workflows/release.yml | 1 + scripts/build.sh | 1 + yazi-cli/src/args.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce64d31e..7df1efcc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,6 +64,7 @@ jobs: TARGET_NAME: yazi-${{ matrix.target }} run: | New-Item -ItemType Directory -Path ${env:TARGET_NAME} + Copy-Item -Path "target\${{ matrix.target }}\release\ya.exe" -Destination ${env:TARGET_NAME} Copy-Item -Path "target\${{ matrix.target }}\release\yazi.exe" -Destination ${env:TARGET_NAME} Copy-Item -Path "yazi-boot\completions" -Destination ${env:TARGET_NAME} -Recurse Copy-Item -Path "README.md", "LICENSE" -Destination ${env:TARGET_NAME} diff --git a/scripts/build.sh b/scripts/build.sh index d3f9a934..2840e103 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -14,6 +14,7 @@ cargo build --release --locked --target "$1" # Create the artifact mkdir "$ARTIFACT_NAME" +cp "target/$1/release/ya" "$ARTIFACT_NAME" cp "target/$1/release/yazi" "$ARTIFACT_NAME" cp -r yazi-boot/completions "$ARTIFACT_NAME" cp README.md LICENSE "$ARTIFACT_NAME" diff --git a/yazi-cli/src/args.rs b/yazi-cli/src/args.rs index e8187b8c..3ef75349 100644 --- a/yazi-cli/src/args.rs +++ b/yazi-cli/src/args.rs @@ -1,7 +1,7 @@ use clap::{command, Parser, Subcommand}; #[derive(Parser)] -#[command(version, about, long_about = None)] +#[command(name = "ya",version, about, long_about = None)] #[command(propagate_version = true)] pub(super) struct Args { #[command(subcommand)]