2022-08-01 17:38:22 +08:00
|
|
|
#!/bin/bash
|
2022-07-15 17:36:11 +08:00
|
|
|
|
2022-10-29 15:54:18 +08:00
|
|
|
|
2023-01-16 23:45:55 +08:00
|
|
|
echo "Now building SilverBullet bundle"
|
2022-10-29 15:54:18 +08:00
|
|
|
curl -fsSL https://deno.land/install.sh | sh
|
|
|
|
export PATH=~/.deno/bin:$PATH
|
2022-10-29 22:01:20 +08:00
|
|
|
|
|
|
|
echo "Generating version number..."
|
|
|
|
echo "export const version = '$(git rev-parse HEAD)';" > version.ts
|
|
|
|
echo "Building..."
|
2022-10-29 15:54:18 +08:00
|
|
|
deno task build
|
2022-11-02 00:03:42 +08:00
|
|
|
deno task install
|
|
|
|
|
|
|
|
rm -rf website_build
|
2022-11-02 00:06:23 +08:00
|
|
|
silverbullet publish --index -o website_build website
|
2022-11-02 00:03:42 +08:00
|
|
|
|
2022-10-29 22:01:20 +08:00
|
|
|
echo "Bundling..."
|
2022-10-29 15:54:18 +08:00
|
|
|
deno task bundle
|
2022-10-29 21:48:27 +08:00
|
|
|
cp dist/silverbullet.js website_build/
|
|
|
|
cp dist_bundle/web/global.plug.json website_build/
|