添加一些新东西
This commit is contained in:
parent
015f24a98f
commit
5491189fc0
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
@ -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*
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "call"
|
||||
version = "1.3.0"
|
||||
version = "1.4.0"
|
||||
description = "一个简单的用于不带控制台/带控制台调用其他程序的包装器"
|
||||
edition = "2021"
|
||||
build = "build.rs"
|
||||
|
@ -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
8
src/reader.rs
Normal file
@ -0,0 +1,8 @@
|
||||
//! 用于读取自身, 获取信息的部分
|
||||
//! 1. 读取自身的信息
|
||||
//! 2. 读取自身的配置文件
|
||||
//! 3. 读取自身的命令行参数
|
||||
//!
|
||||
//! 大概就这样
|
||||
//!
|
||||
|
Loading…
Reference in New Issue
Block a user