#Attaching assets for bun's SEA

1 messages · Page 1 of 1 (latest)

valid pendant
#

Hiya yuniruNipa I'm creating streamer assistant tool by using bun. (current implementation is https://github.com/yuniruyuni/MrDamian ) The tool have localhost HTTP server and it provides some interface to OBS(...is the streaming client app. it has video overlay system by internal browser and so our app provide the http for such OBS internal brower to provide video overlay). For this purpose, I want to create SEA and also (some rich) react assets. In official document, bun's SEA just bundles imported resources like https://github.com/yuniruyuni/MrDamian/blob/497b09ad50d05023a8bd2486a6931362f45d85b7/bin/main.ts#L20-L23 . But I want to bundle a lot of resources (images and sound files) into the SEA binary so I want to avoid enumerate all resource name with import. Are there some option for attaching resources? or some good way for doing this?

GitHub

Contribute to yuniruyuni/MrDamian development by creating an account on GitHub.

GitHub

Contribute to yuniruyuni/MrDamian development by creating an account on GitHub.

ripe rootBOT
valid pendant
#

After some consideration, I have changed a decision from this tool contains all things into single application binary to this tool provides that entry point executable with "no additional install" to use so the code changed as serve static contents with staticServe from a sibling directory ./static from binary installed directory. yuniruNipa