Skip to content

Commit 21a3822

Browse files
committed
Update mitan.json
修改mitan用oraclejre8启动
1 parent e586e1c commit 21a3822

File tree

1 file changed

+12
-41
lines changed

1 file changed

+12
-41
lines changed

bucket/mitan.json

Lines changed: 12 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,26 @@
11
{
22
"version": "1.2.2",
3-
"description": "(Scoop bucket by arch3rpro) mitan - 密探渗透测试工具包含域名查询,搜索语法,资产测绘(FOFA,Hunter,quake),指纹识别,敏感信息采集,文件扫描、密码字典等功能",
3+
"description": "(Scoop bucket by arch3rpro) mitan - 密探渗透测试工具包含域名查询,搜索语法,资产测绘(FOFA,Hunter,quake),指纹识别,敏感信息采集,文件扫描、密码字典等功能",
44
"homepage": "https://github.com/kkbo8005/mitan",
55
"license": "Unknown",
66
"suggest": {
7-
"JDK": [
8-
"java/oraclejdk",
9-
"java/openjdk"
10-
]
7+
"JDK": "java/oraclejre8"
118
},
129
"url": "https://github.com/kkbo8005/mitan/releases/download/1.2.2/mitan1.2.2.zip",
13-
"hash": "6d603abc777963b902b90addd676fda54b8d4b9ab220ecf3ed0109eaa1f0c95a",
10+
"hash": "ec53fe222d92cfe64390325d912aec4311d7abb556649d407f5b782580645224",
1411
"pre_install": [
1512
"Rename-Item \"$dir\\mitan-jar-with-dependencies.jar\" -NewName \"mitan.jar\"",
16-
"Set-Content \"$dir\\mitan.bat\" '@echo off
17-
setlocal
18-
",
19-
"set \"jdk_path=\"
20-
",
21-
"if defined JDK_19_HOME (",
22-
" set \"jdk_path=%JDK_19_HOME%\\bin\\\"",
23-
") else if defined JDK_17_HOME (",
24-
" set \"jdk_path=%JDK_17_HOME%\\bin\\\"",
25-
") else if defined JDK_11_HOME (",
26-
" set \"jdk_path=%JDK_11_HOME%\\bin\\\"",
27-
") else if defined JAVA_HOME (",
28-
" set \"jdk_path=%JAVA_HOME%\\bin\\\"",
29-
")",
30-
"if not exist \"%jdk_path%javaw.exe\" (",
31-
" echo ERROR: Java executable not found in %jdk_path%.",
32-
" exit /b 1",
33-
")",
34-
"set \"javafx_args=\"",
35-
"if defined JAVAFX_HOME (",
36-
" if exist \"%JAVAFX_HOME%\\lib\" (",
37-
" set \"javafx_args=--module-path %JAVAFX_HOME%\\lib --add-modules javafx.controls,javafx.fxml\"",
38-
" ) else (",
39-
" echo WARNING: JAVAFX_HOME is defined but the lib directory is missing.",
40-
" )",
41-
")",
42-
"@pushd %~dp0",
43-
"@start \"\" \"%jdk_path%javaw.exe\" %javafx_args% -jar \"mitan.jar\" %*",
44-
"@popd",
45-
"endlocal' -Encoding Ascii",
46-
"if (!(Test-Path \"$persist_dir\\config.yaml\")) { Copy-Item \"$dir\\config-example.yaml\" \"$dir\\config.yaml\" }"
13+
"$batContent = @'",
14+
"@echo off",
15+
"pushd \"%~dp0\"",
16+
"for /f \"tokens=*\" %%i in ('scoop prefix oraclejre8') do set JDK8_PATH=%%i",
17+
"start \"\" \"%JDK8_PATH%\\bin\\javaw.exe\" -jar \"mitan.jar\" %*",
18+
"popd",
19+
"'@",
20+
"Set-Content \"$dir\\mitan.bat\" $batContent -Encoding Ascii"
4721
],
4822
"bin": "mitan.bat",
49-
"persist": [
50-
"config.yaml",
51-
"logs"
52-
],
23+
"persist": [ "config.yaml", "logs" ],
5324
"checkver": {
5425
"url": "https://api.github.com/repos/kkbo8005/mitan/releases/latest",
5526
"jsonpath": "$.tag_name",

0 commit comments

Comments
 (0)