-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
@echo off | ||
setlocal enabledelayedexpansion | ||
|
||
set PWD=%~dp0 | ||
set JAVA=%PWD%jre8/bin | ||
set DATA=%PWD%data | ||
set "PATH=%JAVA%;%PWD%;%PATH%" | ||
java -version | ||
set "directory=%PWD%\lib" | ||
set "classpath=%PWD%;classes" | ||
|
||
rem 遍历指定目录下的所有文件 | ||
for /r "%directory%" %%I in (*) do ( | ||
set "classpath=!classpath!;%%~fI" | ||
) | ||
|
||
rem 去掉开头的分号 | ||
if defined classpath ( | ||
set "classpath=!classpath:~1!" | ||
) | ||
start /b %PWD%aria2c.exe --conf-path=%PWD%aria2.conf > aria2.log | ||
echo "aria2RPC start" | ||
chcp 65001 | ||
java -jar -Dfile.encoding=utf-8 app.jar --podcast2.data.data-path=%DATA% | ||
java -Dfile.encoding=utf-8 -classpath "%classpath%" -Dpodcast2.data.data-path=%DATA% io.github.yajuhua.podcast2.Podcast2Application | ||
endlocal |