HumbleUI / JWM

Cross-platform window management and OS integration library for Java
Apache License 2.0
546 stars 44 forks source link

Release candidate? #261

Closed jakeisnt closed 1 year ago

jakeisnt commented 1 year ago

I'd like to get tonsky/humble-deck working on X11. This takes -

If there is a way to pin transitive dependencies in humble-deck to local paths let me know! that seems far easier

tonsky commented 1 year ago

Yes, you can use local versions of skija, humbleui and jwm. This is how you would set this up:

{:deps
 {org.clojure/clojure {:mvn/version "1.11.1"}
  io.github.humbleui/types$clojure {:mvn/version "0.2.0"}}
  ; io.github.humbleui/humbleui {:git/sha "5bf5e2a47bf99818c6e7f712c43462d4ecb6254c"}
 :paths ["src"
         "/Users/tonsky/ws/humbleui/src"
         "/Users/tonsky/ws/humbleui/resources"
         "/Users/tonsky/ws/jwm/target/classes"
         "/Users/tonsky/ws/skija/shared/target/classes-java9"
         "/Users/tonsky/ws/skija/shared/target/classes"
         "/Users/tonsky/ws/skija/platform/target/windows-x64/classes"
         "/Users/tonsky/ws/skija/platform/target/windows-x64/native"
         "/Users/tonsky/ws/skija/platform/target/linux-x64/classes"
         "/Users/tonsky/ws/skija/platform/target/linux-x64/native"
         "/Users/tonsky/ws/skija/platform/target/macos-x64/classes"
         "/Users/tonsky/ws/skija/platform/target/macos-x64/native"
         "/Users/tonsky/ws/skija/platform/target/macos-arm64/classes"
         "/Users/tonsky/ws/skija/platform/target/macos-arm64/native"]
 :aliases
 {:dev {:extra-paths ["dev"]
        :extra-deps {nrepl/nrepl {:mvn/version "1.0.0"}
                     org.clojure/tools.namespace {:mvn/version "1.3.0"}}
        :jvm-opts ["-ea"]}}}

This is a bit hacky, so you’ll have to build skija/jwm in advance, because it links directly to their output directories. But it works

tonsky commented 1 year ago

I bumped all the deps all the way up to humble-deck, check if it works for you

jakeisnt commented 1 year ago

Works perfectly, thanks : )