Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Protoxy22 committed Apr 29, 2022
1 parent 1fdaced commit 1d2130b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
}

tasks.jar {
manifest {
attributes["Main-Class"] = "net.volachat.AppKt"
}
configurations["compileClasspath"].forEach { file: File ->
from(zipTree(file.absoluteFile))
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

compose.desktop {
application {
mainClass = "net.volachat.AppKt"
Expand All @@ -80,7 +90,6 @@ compose.desktop {
macOS {
iconFile.set(iconsRoot.resolve("launcher_icons/macos.icns"))
}

}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin.code.style=official
# To fix the out of memory error
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
6 changes: 1 addition & 5 deletions src/main/kotlin/net/volachat/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ class App(

companion object {
lateinit var appArgs: AppArgs
var volachat_server_ip = "0.0.0.0"
var volachat_server_ip = "5.135.103.173"
var volachat_server_port = 8282
var token: TokenResponse? = null

val client = HttpClient() {
engine {
threadsCount = 4
pipelining = true
}
install(ContentNegotiation) {
gson()
}
Expand Down

0 comments on commit 1d2130b

Please sign in to comment.