This repository has been archived by the owner on Feb 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
98 lines (82 loc) · 3.49 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.10"
id("org.jetbrains.compose") version "1.2.0-beta02"
kotlin("plugin.serialization") version "1.7.10"
id("com.google.devtools.ksp") version "1.7.10-1.0.6"
id("com.github.ben-manes.versions") version "0.42.0"
id("com.squareup.sqldelight") version "1.5.3"
}
val appVersion = "0.4.0"
group = "dev.datlag"
version = appVersion
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
val ktorfitVersion = "1.0.0-beta14"
val ktorVersion = "2.1.2"
val composeVersion = "1.2.0-beta02"
dependencies {
implementation(compose.desktop.currentOs)
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
implementation("org.jetbrains.compose.material3:material3:$composeVersion")
implementation("org.jetbrains.compose.material:material-icons-extended:$composeVersion")
implementation("io.github.vincenzopalazzo:material-ui-swing:1.1.4")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
implementation("de.jensklingenberg.ktorfit:ktorfit-lib:$ktorfitVersion")
ksp("de.jensklingenberg.ktorfit:ktorfit-ksp:$ktorfitVersion")
implementation("org.tukaani:xz:1.9")
implementation("org.rauschig:jarchivelib:1.2.0")
implementation("org.apache.tika:tika-core:2.5.0")
implementation("com.squareup.sqldelight:sqlite-driver:1.5.3")
implementation("com.squareup.sqldelight:coroutines-extensions-jvm:1.5.3")
runtimeOnly("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.6.4")
implementation("com.sealwu:kscript-tools:1.0.21")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
compose.desktop {
application {
mainClass = "dev.datlag.dxvkotool.MainKt"
nativeDistributions {
targetFormats(
TargetFormat.AppImage,
TargetFormat.Rpm,
TargetFormat.Deb,
TargetFormat.Exe,
TargetFormat.Msi,
// TargetFormat.Dmg, as soon as 1.0.0 is available (requires 'MAJOR[.MINOR][.PATCH]')
// TargetFormat.Pkg as soon as 1.0.0 is available (requires 'MAJOR[.MINOR][.PATCH]')
)
packageName = "DXVKoTool"
packageVersion = appVersion
outputBaseDir.set(project.buildDir.resolve("release"))
description = "The DXVKoTool extracts DXVK caches of games automatically and can update them with newer caches"
copyright = "© 2020 Jeff Retz (DatLag). All rights reserved."
licenseFile.set(project.file("LICENSE"))
linux {
iconFile.set(project.file("./src/main/resources/AppIcon128.png"))
rpmLicenseType = "GPL-3.0"
}
windows {
iconFile.set(project.file("./src/main/resources/AppIcon128.ico"))
}
macOS {
iconFile.set(project.file("./src/main/resources/AppIcon.icns"))
}
modules("java.instrument", "java.management", "java.naming", "java.prefs", "java.sql", "jdk.unsupported")
}
}
}
sqldelight {
database("DXVKoToolDB") {
packageName = "dev.datlag"
}
}