Merged two datastores into one (for both state and files), this will trigger a resync on upgrade
18 lines
386 B
Bash
Executable File
18 lines
386 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
if [ "$1" != "local" ]; then
|
|
echo "Install Deno"
|
|
curl -fsSL https://deno.land/install.sh | sh
|
|
export PATH=~/.deno/bin:$PATH
|
|
export DENO_DIR=$PWD/deno_cache
|
|
echo "DENO_DIR: $DENO_DIR"
|
|
mkdir -p $DENO_DIR
|
|
|
|
fi
|
|
|
|
deno task clean
|
|
deno task build
|
|
deno task bundle
|
|
mkdir -p website_build
|
|
cp dist/silverbullet.js website_build/
|
|
cp install.sh website_build/ |