This commit is contained in:
sxyazi 2024-04-15 15:40:01 +08:00
parent 68c1455d08
commit 9b63315d5d
No known key found for this signature in database
3 changed files with 3 additions and 1 deletions

View file

@ -64,6 +64,7 @@ jobs:
TARGET_NAME: yazi-${{ matrix.target }} TARGET_NAME: yazi-${{ matrix.target }}
run: | run: |
New-Item -ItemType Directory -Path ${env:TARGET_NAME} 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 "target\${{ matrix.target }}\release\yazi.exe" -Destination ${env:TARGET_NAME}
Copy-Item -Path "yazi-boot\completions" -Destination ${env:TARGET_NAME} -Recurse Copy-Item -Path "yazi-boot\completions" -Destination ${env:TARGET_NAME} -Recurse
Copy-Item -Path "README.md", "LICENSE" -Destination ${env:TARGET_NAME} Copy-Item -Path "README.md", "LICENSE" -Destination ${env:TARGET_NAME}

View file

@ -14,6 +14,7 @@ cargo build --release --locked --target "$1"
# Create the artifact # Create the artifact
mkdir "$ARTIFACT_NAME" mkdir "$ARTIFACT_NAME"
cp "target/$1/release/ya" "$ARTIFACT_NAME"
cp "target/$1/release/yazi" "$ARTIFACT_NAME" cp "target/$1/release/yazi" "$ARTIFACT_NAME"
cp -r yazi-boot/completions "$ARTIFACT_NAME" cp -r yazi-boot/completions "$ARTIFACT_NAME"
cp README.md LICENSE "$ARTIFACT_NAME" cp README.md LICENSE "$ARTIFACT_NAME"

View file

@ -1,7 +1,7 @@
use clap::{command, Parser, Subcommand}; use clap::{command, Parser, Subcommand};
#[derive(Parser)] #[derive(Parser)]
#[command(version, about, long_about = None)] #[command(name = "ya",version, about, long_about = None)]
#[command(propagate_version = true)] #[command(propagate_version = true)]
pub(super) struct Args { pub(super) struct Args {
#[command(subcommand)] #[command(subcommand)]