build / build (push) Successful in 10m17s
- 同步仓库 CI 配置 .gitea/workflows/build.yml - 纳入 src/public/config/scripts 等工程文件 - .gitignore 增加 .scratch/.backup/.trash,排除本地临时产物
21 lines
486 B
Batchfile
21 lines
486 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
REM Usage: kill-port.bat 8101
|
|
REM kill-port.bat 8101 /force (skip confirm, kill directly)
|
|
REM No argument -> prompts for the port number.
|
|
setlocal
|
|
set "PORT=%~1"
|
|
set "EXTRA="
|
|
if /I "%~2"=="/force" set "EXTRA=-Force"
|
|
|
|
if "%PORT%"=="" (
|
|
set /p "PORT=Enter port to release: "
|
|
)
|
|
if "%PORT%"=="" (
|
|
echo No port entered. Exit.
|
|
exit /b 1
|
|
)
|
|
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0kill-port.ps1" -Port %PORT% %EXTRA%
|
|
endlocal
|