From 662e12f19b2beffeabeee927b4d832e682029451 Mon Sep 17 00:00:00 2001 From: biezhihua Date: Sat, 10 Feb 2024 17:19:15 +0800 Subject: [PATCH] soda_clix version 0.1.1 --- .dockerignore | 3 --- soda_cli/Cargo.toml | 2 +- soda_cli/src/main.rs | 3 +-- soda_cli_docker/.dockerignore | 12 ++++++++++++ soda_cli_docker/Dockerfile | 13 +++++++++++++ soda_clix_build_release.ps1 | 5 +++++ soda_clix_build_release.sh | 7 +++++++ 7 files changed, 39 insertions(+), 6 deletions(-) delete mode 100644 .dockerignore create mode 100644 soda_cli_docker/.dockerignore create mode 100644 soda_cli_docker/Dockerfile create mode 100644 soda_clix_build_release.ps1 create mode 100644 soda_clix_build_release.sh diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 72db9e2b..00000000 --- a/.dockerignore +++ /dev/null @@ -1,3 +0,0 @@ -# Ignore git -.github -.git \ No newline at end of file diff --git a/soda_cli/Cargo.toml b/soda_cli/Cargo.toml index e31bd2f1..b2671319 100644 --- a/soda_cli/Cargo.toml +++ b/soda_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "soda_clix" -version = "0.1.0" +version = "0.1.1" edition = "2021" license = "GPL-3.0-only" keywords = ["scrape"] diff --git a/soda_cli/src/main.rs b/soda_cli/src/main.rs index b8e5957e..bc6c3312 100644 --- a/soda_cli/src/main.rs +++ b/soda_cli/src/main.rs @@ -18,8 +18,7 @@ use clap::Parser; use clap::Subcommand; #[derive(Debug, Parser)] -#[command(name = "soda")] -#[command(about = "A resource scrape CLI", long_about = None)] +#[command(name = "soda_clix", version = "0.1.1", author = "biezhihua", about = "A media scrape CLI", long_about = None)] struct Cli { /// 开发模式 #[arg(long)] diff --git a/soda_cli_docker/.dockerignore b/soda_cli_docker/.dockerignore new file mode 100644 index 00000000..fb91ffd7 --- /dev/null +++ b/soda_cli_docker/.dockerignore @@ -0,0 +1,12 @@ +# Ignore git +.github +.git +.idea +.images +.logo +.soda_resource_tools_server +.soda_resource_tools_webui +.vscode +soda_cli +soda_cli_config +soda_resource_tools_lib \ No newline at end of file diff --git a/soda_cli_docker/Dockerfile b/soda_cli_docker/Dockerfile new file mode 100644 index 00000000..4d6bff42 --- /dev/null +++ b/soda_cli_docker/Dockerfile @@ -0,0 +1,13 @@ +# 使用官方Rust镜像作为基础镜像 +FROM rust:latest + +# 安装OpenSSL +RUN apt-get update && \ + apt-get install -y openssl libssl-dev pkg-config && \ + rm -rf /var/lib/apt/lists/* + +# install soda_clix +RUN cargo install soda_clix + +# test soda_clix +RUN soda_clix --version \ No newline at end of file diff --git a/soda_clix_build_release.ps1 b/soda_clix_build_release.ps1 new file mode 100644 index 00000000..e272b734 --- /dev/null +++ b/soda_clix_build_release.ps1 @@ -0,0 +1,5 @@ +cross build --target x86_64-apple-darwin --release + +cross build --target x86_64-pc-windows-gnu --release + +cross build --target x86_64-unknown-linux-gnu --release \ No newline at end of file diff --git a/soda_clix_build_release.sh b/soda_clix_build_release.sh new file mode 100644 index 00000000..57ff0eca --- /dev/null +++ b/soda_clix_build_release.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +cross build --target x86_64-apple-darwin --release + +cross build --target x86_64-pc-windows-gnu --release + +cross build --target x86_64-unknown-linux-gnu --release \ No newline at end of file