From 96020fdbfa03f06cc4a2b96bc1731601e85f0827 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 11 Aug 2023 17:08:07 +0800 Subject: [PATCH] build(desktop): use conveyor to build the desktop apps --- .gitignore | 3 +++ conveyor.conf | 25 +++++++++++++++++++++++++ conveyor.msstore.conf | 15 +++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 conveyor.conf create mode 100644 conveyor.msstore.conf diff --git a/.gitignore b/.gitignore index 027a4127a..55302487a 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,6 @@ nbdist/ /config-dir/ application-oauth2.yml /benchmark + +### Conveyor +output/ diff --git a/conveyor.conf b/conveyor.conf new file mode 100644 index 000000000..cb3f3e5ce --- /dev/null +++ b/conveyor.conf @@ -0,0 +1,25 @@ +include "#!./gradlew -q :komga-tray:printConveyorConfig" + +app { + display-name = Komga + fsname = komga + vcs-url = "https://github.com/gotson/komga" + vendor = "Gotson" + description = "Media server for comics/mangas/BDs with API and OPDS support" + license = MIT + icons = "res/komga_text_as_path.svg" + + jvm { + // for NightMonkeys + options += "--enable-preview" + modules = ["java.management", "java.naming", "java.instrument", "java.sql", "jdk.unsupported", "jdk.security.jgss", "java.desktop"] + + // Homebrew path + mac.options += "-Djava.library.path=:/opt/homebrew/lib/:/usr/local/lib/" + mac.options += "-Dspring.profiles.include=mac" + + windows.options += "-Dspring.profiles.include=windows" + } +} + +conveyor.compatibility-level = 11 diff --git a/conveyor.msstore.conf b/conveyor.msstore.conf new file mode 100644 index 000000000..bd3396c2e --- /dev/null +++ b/conveyor.msstore.conf @@ -0,0 +1,15 @@ +include required("conveyor.conf") + +app { + fsname = komga-msstore + windows { + store { + identity-name = 612Gotson.Komga + publisher = "CN=CF37C563-9649-4277-990F-CDD0CDCB78C1" + publisher-display-name = Gotson + store-id = 9N924KC4S4HG + } + + certificate = self signed by ${app.windows.store.publisher} + } +}