sqlite3 icon indicating copy to clipboard operation
sqlite3 copied to clipboard

jsr can avoid native binary downloads

Open andykais opened this issue 7 months ago • 1 comments

JSR has support for including arbitrary files in a published package https://jsr.io/docs/publishing-packages#filtering-files. That means you could avoid the fetch step during startup and remove two permissions needed during first launch (--allow-net, --allow-write). The actual config would look something like this:

  "publish": {
    "include": [
      "built_native_deps/**/*"
    ]
  }

The downside here is that until jsr has smarter retrieval logic, all native dependencies will be fetched by all platforms, so thats a tradeoff worth thinking about. Imo though this is the right direction rather than an implicit fetch step during first startup.

andykais avatar Jun 29 '24 16:06 andykais