build.sh 613 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. echo "Deleting existing builds"
  3. rm -rf dist/*
  4. SRC_DIR=dist/trilium-src
  5. bin/copy-trilium.sh $SRC_DIR
  6. # we'll just copy the same SRC dir to all the builds so we don't have to do npm install in each separately
  7. cp -r $SRC_DIR ./dist/trilium-linux-x64-src
  8. cp -r $SRC_DIR ./dist/trilium-linux-x64-server
  9. cp -r $SRC_DIR ./dist/trilium-windows-x64-src
  10. cp -r $SRC_DIR ./dist/trilium-mac-x64-src
  11. cp -r $SRC_DIR ./dist/trilium-mac-arm64-src
  12. bin/build-win-x64.sh DONTCOPY
  13. bin/build-mac-x64.sh DONTCOPY
  14. bin/build-mac-arm64.sh DONTCOPY
  15. bin/build-linux-x64.sh DONTCOPY
  16. bin/build-server.sh DONTCOPY