Skip to content

Commit

Permalink
soda_clix version 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
biezhihua committed Feb 10, 2024
1 parent d1b67ca commit 662e12f
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

2 changes: 1 addition & 1 deletion soda_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
3 changes: 1 addition & 2 deletions soda_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
12 changes: 12 additions & 0 deletions soda_cli_docker/.dockerignore
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions soda_cli_docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions soda_clix_build_release.ps1
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions soda_clix_build_release.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 662e12f

Please sign in to comment.