2025-12-12 10:20:08 +08:00
|
|
|
|
@echo off
|
2025-12-17 10:46:35 +08:00
|
|
|
|
chcp 65001 >nul
|
|
|
|
|
|
title 构建和打包工具
|
|
|
|
|
|
echo lin___LinZhi哨岗打包 sgxt_pc...
|
2025-12-12 10:20:08 +08:00
|
|
|
|
|
|
|
|
|
|
call npm run build
|
2025-12-17 10:46:35 +08:00
|
|
|
|
echo 打包完成,正在压缩...
|
2025-12-12 10:20:08 +08:00
|
|
|
|
if exist gsxt.zip del gsxt.zip
|
|
|
|
|
|
powershell Compress-Archive -Path gsxt -DestinationPath gsxt.zip
|
2025-12-17 10:46:35 +08:00
|
|
|
|
echo 压缩完成!
|
2025-12-12 10:20:08 +08:00
|
|
|
|
explorer .
|
2025-12-17 10:46:35 +08:00
|
|
|
|
msg * "林芝哨岗pc打包完成!"
|
2025-12-12 10:20:08 +08:00
|
|
|
|
start http://localhost:9528?project=sgxt_pc
|
2025-12-17 10:46:35 +08:00
|
|
|
|
powershell -Command "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('打包和压缩已完成!', '成功', [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::Exclamation)"
|