Matt Nelson
10/18/2022, 7:57 AMjsMain
in order to uncompress and persist to FS. Resources in question are in src/jsMain/resources
directory.
With java you'd just call
javaClass.getResourcesAsStream("/path/myresource.txt.gz")
1. Is there a similar way to java's for accessing them at runtime?
2. The files should not be served as content, would there be a better way to distribute them then as resources?Big Chungus
10/18/2022, 8:15 AMBig Chungus
10/18/2022, 8:17 AMBig Chungus
10/18/2022, 8:21 AMBig Chungus
10/18/2022, 8:27 AMMatt Nelson
10/18/2022, 9:48 AMBig Chungus
10/18/2022, 9:53 AMBig Chungus
10/18/2022, 9:53 AMBig Chungus
10/18/2022, 9:54 AMBig Chungus
10/18/2022, 9:55 AMBig Chungus
10/18/2022, 9:56 AMMatt Nelson
10/18/2022, 9:57 AMbuild
directory...Big Chungus
10/18/2022, 9:58 AMBig Chungus
10/18/2022, 9:59 AMBig Chungus
10/18/2022, 10:00 AMBig Chungus
10/18/2022, 10:01 AMMatt Nelson
10/18/2022, 10:03 AMMatt Nelson
10/18/2022, 10:06 AMBig Chungus
10/18/2022, 10:06 AMBig Chungus
10/18/2022, 10:06 AMBig Chungus
10/18/2022, 10:07 AMMatt Nelson
10/18/2022, 10:07 AMMatt Nelson
10/18/2022, 10:07 AMHave a look at #npm-publish for publishingDefinitely, thanks!
Big Chungus
10/18/2022, 10:07 AMMatt Nelson
10/18/2022, 10:08 AMKlib distribution goes through regular maven-publish, but it will not distribute your resources for js target...
kmp-tor
wrapper project???? 🤔Big Chungus
10/18/2022, 10:10 AMBig Chungus
10/18/2022, 10:12 AMBig Chungus
10/18/2022, 10:12 AMMatt Nelson
10/18/2022, 10:19 AMkmp-tor-binary
assets to npm
• kmp-tor
library consumer would also add npm
dependency for assets (whatever platform/architecture they wish to support)Big Chungus
10/18/2022, 10:23 AMBig Chungus
10/18/2022, 10:24 AMMatt Nelson
10/18/2022, 10:25 AMMatt Nelson
10/19/2022, 2:57 AM