Remove pom.xml and RedisClipSync.java files; update README.md to reflect new project structure and build instructions.
This commit is contained in:
16
linux/run.sh
Normal file
16
linux/run.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
CONFIG="${1:-config.properties}"
|
||||
|
||||
if [[ ! -f code/target/redis-clip-sync.jar ]]; then
|
||||
echo "未找到 code/target/redis-clip-sync.jar,请先运行 linux/build-and-run.sh 进行打包。"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "启动 Redis 剪切板同步(配置: $CONFIG)..."
|
||||
exec java -jar code/target/redis-clip-sync.jar "$CONFIG"
|
||||
Reference in New Issue
Block a user