Skip to content

Commit c5c1cf0

Browse files
lixiaoliang04lixiaoliang04
lixiaoliang04
authored and
lixiaoliang04
committed
fix jitpack upload
1 parent d6a7a21 commit c5c1cf0

File tree

1 file changed

+16
-16
lines changed
  • file-plugin/src/main/kotlin/com/imf/plugin/so

1 file changed

+16
-16
lines changed

file-plugin/src/main/kotlin/com/imf/plugin/so/Plugin.kt

+16-16
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,22 @@ abstract class SoFilePlugin : Plugin<Project> {
7070
}
7171
//endregion
7272

73-
val dep = project.dependencies.add(
74-
p7zConfig.name, mapOf<String, String>(
75-
"group" to "com.mainlxl.tools",
76-
"name" to "p7z",
77-
"classifier" to osdetector.classifier,
78-
"version" to "1.0.1",
79-
"ext" to "exe"
80-
)
81-
)
82-
runCatching {
83-
val file = p7zConfig.fileCollection(dep).singleFile
84-
if (!file.canExecute() && !file.setExecutable(true)) {
85-
throw GradleException("Cannot set ${file} as executable")
86-
}
87-
return file.absolutePath
88-
}
73+
// val dep = project.dependencies.add(
74+
// p7zConfig.name, mapOf<String, String>(
75+
// "group" to "com.mainlxl.tools",
76+
// "name" to "p7z",
77+
// "classifier" to osdetector.classifier,
78+
// "version" to "1.0.1",
79+
// "ext" to "exe"
80+
// )
81+
// )
82+
// runCatching {
83+
// val file = p7zConfig.fileCollection(dep).singleFile
84+
// if (!file.canExecute() && !file.setExecutable(true)) {
85+
// throw GradleException("Cannot set ${file} as executable")
86+
// }
87+
// return file.absolutePath
88+
// }
8989
// 兜底使用系统环境变量配置的7z命令
9090
val os = System.getenv("OS")?.lowercase()
9191
if (os != null && os.contains("windows")) {

0 commit comments

Comments
 (0)