ci/build_release.sh
#!/bin/bash

# Create release folder
mkdir release

# Copy everything to release folder
cp -R appinfo release/appinfo
cp -R css release/css
cp -R js release/js
cp -R img release/img
cp -R l10n release/l10n
cp -R lib release/lib
cp -R templates release/templates
cp AUTHORS.md release/AUTHORS.md
cp LICENSE release/LICENSE
cp README.md release/README.md

# JS
mkdir release/vendor
mkdir release/vendor/tesseract.js

# Copy js artifacts
cp node_modules/tesseract.js/dist/worker.min.js release/vendor/tesseract.js/worker.min.js
cp node_modules/tesseract.js/dist/worker.min.js.map release/vendor/tesseract.js/worker.min.js.map
cp node_modules/tesseract.js-core/tesseract-core.wasm.js release/vendor/tesseract.js/tesseract-core.wasm.js
cp node_modules/tesseract.js-core/tesseract-core.js release/vendor/tesseract.js/tesseract-core.js
cp node_modules/tesseract.js-core/tesseract-core.wasm release/vendor/tesseract.js/tesseract-core.wasm
cp node_modules/tesseract.js-core/tesseract-core.asm.js release/vendor/tesseract.js/tesseract-core.asm.js
