Skip to content

Commit

Permalink
Merge pull request #254 from yunjaena/feature/add_desktop_info_jdk_17
Browse files Browse the repository at this point in the history
Update ReadMe for JDK 17 desktop
  • Loading branch information
KevinnZou authored Nov 23, 2024
2 parents 3e6a565 + 01ed584 commit afbe99b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.desktop.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ fun main() = application {
var restartRequired by remember { mutableStateOf(false) }
var downloading by remember { mutableStateOf(0F) }
var initialized by remember { mutableStateOf(false) }
val download: Download = remember { Builder().github().build() }

LaunchedEffect(Unit) {
withContext(Dispatchers.IO) {
KCEF.init(builder = {
installDir(File("kcef-bundle"))

/*
Add this code when using JDK 17.
Builder().github {
release("jbr-release-17.0.10b1087.23")
}.buffer(download.bufferSize).build()
*/
progress {
onDownloading {
downloading = max(it, 0F)
Expand Down

0 comments on commit afbe99b

Please sign in to comment.