19 lines
462 B
Batchfile
19 lines
462 B
Batchfile
@echo off
|
||
chcp 65001 >nul
|
||
|
||
:: 切换到项目根目录(脚本在 windows\ 下)
|
||
cd /d "%~dp0.."
|
||
|
||
set CONFIG=config.properties
|
||
if not "%~1"=="" set CONFIG=%~1
|
||
|
||
if not exist "code\target\redis-clip-sync.jar" (
|
||
echo 未找到 code\target\redis-clip-sync.jar,请先运行 windows\build-and-run.bat 进行打包。
|
||
pause
|
||
exit /b 1
|
||
)
|
||
|
||
echo 启动 Redis 剪切板同步(配置: %CONFIG%)...
|
||
java -jar code\target\redis-clip-sync.jar %CONFIG%
|
||
pause
|