添加一些新东西

This commit is contained in:
shenjack 2024-04-13 00:59:57 +08:00
parent 015f24a98f
commit 5491189fc0
Signed by: shenjack
GPG Key ID: 7B1134A979775551
4 changed files with 24 additions and 1 deletions

View File

@ -20,5 +20,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: 获取版本号
id: get_version
uses: sravinet/toml-select@v1.0.1
with:
file: ./Cargo.toml
field: "package.version"
- name: 上传
uses: actions/upload-artifact@v2
with:
name: wrapper-rs-b${{ github.run_number }}-${{ steps.get_version.outputs.value }}
path: ./target/release/call*

View File

@ -1,6 +1,6 @@
[package]
name = "call"
version = "1.3.0"
version = "1.4.0"
description = "一个简单的用于不带控制台/带控制台调用其他程序的包装器"
edition = "2021"
build = "build.rs"

View File

@ -7,6 +7,7 @@ mod other;
#[cfg(windows)]
mod win;
mod reader;
mod config;
pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");

8
src/reader.rs Normal file
View File

@ -0,0 +1,8 @@
//! 用于读取自身, 获取信息的部分
//! 1. 读取自身的信息
//! 2. 读取自身的配置文件
//! 3. 读取自身的命令行参数
//!
//! 大概就这样
//!