Skip to content

Commit

Permalink
update start.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
yajuhua committed Apr 30, 2024
1 parent c3211e3 commit e90e6ef
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions platform/windows/start.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@ set JAVA=%PWD%jre8/bin
set DATA=%PWD%data
set "PATH=%JAVA%;%PWD%;%PATH%"
set "directory=%PWD%\lib"
set "classpath=%PWD%;classes"
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 -Dfile.encoding=utf-8 -classpath "%classpath%" -Dpodcast2.data.data-path=%DATA% io.github.yajuhua.podcast2.Podcast2Application
endlocal
endlocal

0 comments on commit e90e6ef

Please sign in to comment.