Skip to content

Choosing a backend for your app

Alex edited this page Aug 4, 2024 · 12 revisions

Saucer provides several backends for different operating systems:

  • Windows
  • WebView2 (as webview2)
  • GNU/Linux
  • Qt5 (as qt5)
  • Qt6 (as qt6)

With saucer4j, you need to bundle the backends you want with your app. The library will automatically select the correct backend at runtime.

Replace _VERSION with the latest version or commit in this repo and make sure to add the Repository to your build system.

Replace _BACKEND with one of the above backends. You can also use the _all meta package to include every backend as a single dependency.

Maven
<dependency>
    <groupId>com.github.saucer.saucer4j</groupId>
    <artifactId>_BACKEND</artifactId>
    <version>_VERSION</version>
</dependency>
Gradle
dependencies {
  implementation 'com.github.saucer:saucer4j._BACKEND:_VERSION'
}
SBT
libraryDependencies += "com.github.saucer.saucer4j" % "_BACKEND" % "_VERSION"
Leiningen
:dependencies [[com.github.saucer.saucer4j/_BACKEND "_VERSION"]]

Note about using Qt in your project

Qt provides two licenses:

  • A community license, which may require your project to be licensed under GPL.
  • A paid license, which does not require your project to be licensed under GPL.

We are currently working on a WebkitGTK backend which does not require a paid license or your project to be GPL licensed.

Clone this wiki locally