diff options
| author | 1992414357@qq.com <1992414357@qq.com> | 2025-05-27 07:21:37 +0800 |
|---|---|---|
| committer | 1992414357@qq.com <1992414357@qq.com> | 2025-05-27 07:21:37 +0800 |
| commit | f8336ed832fa8e1ddd2f1783bdfc23d3279d5e6a (patch) | |
| tree | 42097cd72e46736ac3a544bd3d6dc50e2327a677 /.cargo/scripts/release_project.bat | |
First commit
Diffstat (limited to '.cargo/scripts/release_project.bat')
| -rw-r--r-- | .cargo/scripts/release_project.bat | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.cargo/scripts/release_project.bat b/.cargo/scripts/release_project.bat new file mode 100644 index 0000000..3979e9d --- /dev/null +++ b/.cargo/scripts/release_project.bat @@ -0,0 +1,37 @@ +@echo off +setlocal enabledelayedexpansion + +:: ================= 路径 ================= +:: 控制台程序的 CRATE +set "CONSOLE_CRATE_DIR=console" + +:: C动态链接库的 CRATE +set "DLL_CRATE_DIR=core_c" + +:: 打包地址 +set "RELEASE_DIR=release\dev" + +:: ================= 构建 ================= +:: 控制台程序 +echo [INFO] Building console ... +pushd ".\%CONSOLE_CRATE_DIR%\" +cargo build --release +popd +echo +:: C动态链接库 +echo [INFO] Building dll ... +pushd ".\%DLL_CRATE_DIR%\" +cargo build --release +popd + +echo Done. +echo + +:: =============== 发布文件 =============== +echo +echo [INFO] Generating release files +call .\.cargo\scripts\release_console\generate_console_release_file.bat + +explorer.exe ".\%RELEASE_DIR%\" + +echo Done.
\ No newline at end of file |
