silverbullet
                                
                                 silverbullet copied to clipboard
                                
                                    silverbullet copied to clipboard
                            
                            
                            
                        Move to single-binary distributions for server
deno bundle which current produces the silverbullet.js bundle is deprecated, while deno compile (which produces single binaries you can run without having Deno installed) has gained some features that were previously missing (such as Worker support) and SB required.
The plan is to migrate away from deno bundle and to produce platform-specific builds for SilverBullet server using deno compile. I'm happy to do this anyway, because I had to do a fair bit of hacking to get deno bundle to actually bundle everything it needed and this would clean some of that up.
What needs to happen:
- [x] Make SB actually work with deno compileit doesn't onmain
- [x] Create a new installer script (to replace the deno run ...line on the website right now) that determines the OS and architecture and downloads the appropriate zip file and extracts it locally
- [ ] Update the silverbullet upgradecommand to replace itself with a newer version when available
- [x] Update the latest silverbulllet.json silverbullet.md to describe how to perform upgrades in the future.
- [x] Update the Desktop builds to also use the deno compilebased binary, rather than runningdenoas a sub-process and distribute/sign it with the desktop distribution
- [ ] Update Docker build
- [x] Update the documentation on how to install SilverBullet server
Beside reducing some technical debt, the cool thing is that regular users no longer need to install Deno at all. They will be able to run a single curl | sh style command to install SB and don't need to install and manage Deno separately.
Work is currently in progress in the compile branch
Sadly I have to put this on hold due to this blocker: https://github.com/denoland/deno/issues/11154 which makes it impossible to create signed Mac desktop builds based on this new model. Reverted all the commits on main and keeping this work on the compile branch for now.
Since there's now no need to sign anything anymore (since dropping the desktop app), this is unblocked. Question is still: do we want it?
Well, I am just seeing SilverBullet for the first time today, but yes, I would love to see this.
Install failed at my locked-down corporate environment. I got deno running, but had trouble with loading SB's NPM dependencies.
I single executable is always easier.
A full transition is blocked because we need to figure out how to build ARM64 Linux builds, which Deno doesn't natively support. Maybe doing this inside an ARM64 docker image is an option.
It's now possible to build for Linux arm in deno. So this one's unblocked again.