This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
76 lines (71 loc) · 2.02 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
id("org.jetbrains.compose") version "1.5.12"
}
group = "org.koitharu"
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
kotlin {
jvm {
jvmToolchain(11)
withJava()
}
sourceSets {
val jvmMain by getting {
dependencies {
implementation(compose.desktop.currentOs)
implementation(compose.material3)
implementation(compose.materialIconsExtended)
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
implementation("com.charleskorn.kaml:kaml:0.55.0")
implementation("io.ktor:ktor-client-core:2.3.6")
implementation("io.ktor:ktor-client-cio:2.3.6")
implementation("org.json:json:20220320")
implementation("com.github.KotatsuApp:kotatsu-parsers:41eea1c420")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("com.squareup.okio:okio:3.4.0")
implementation("io.webfolder:quickjs:1.1.0")
implementation("media.kamel:kamel-image:0.8.3")
implementation("com.github.Koitharu:jSystemThemeDetector:9a3824cf4b")
}
}
val jvmTest by getting
}
}
compose.desktop {
application {
mainClass = "org.koitharu.kotatsu_dl.MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Exe, TargetFormat.AppImage, TargetFormat.Rpm, TargetFormat.Deb)
packageName = "kotatsu-dl"
packageVersion = "1.0.1"
modules("java.instrument", "jdk.unsupported")
val iconsRoot = project.file("packaging/icons")
macOS {
iconFile.set(iconsRoot.resolve("icon.icns"))
}
windows {
menu = true
menuGroup = "kotatsu-dl"
shortcut = true
perUserInstall = true
iconFile.set(iconsRoot.resolve("icon.ico"))
}
linux {
menuGroup = "Network"
iconFile.set(iconsRoot.resolve("icon.png"))
}
}
buildTypes.release {
proguard {
configurationFiles.from("proguard-rules.pro")
}
}
}
}