File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
3+ _DS_VERSION=" 0.8.0"
4+
35rm -rf node_modules
46
57if [ -z " ${ADDON_ARCH} " ]; then
@@ -48,15 +50,15 @@ case "$ADDON_ARCH" in
4850esac
4951
5052curl \
51- -L " https://github.com/mozilla/DeepSpeech/releases/download/v0.8.0 /${_SCORER_TARBALL} " | \
53+ -L " https://github.com/mozilla/DeepSpeech/releases/download/v ${_DS_VERSION} /${_SCORER_TARBALL} " | \
5254 tar xJ generate_scorer_package
5355popd
5456
5557# download the DeepSpeech model
5658pushd " ${here} /assets"
5759curl \
5860 -o " deepspeech-model.tflite" \
59- -L " https://github.com/mozilla/DeepSpeech/releases/download/v0.8.0 /deepspeech-0.8.0 -models.tflite"
61+ -L " https://github.com/mozilla/DeepSpeech/releases/download/v ${_DS_VERSION} /deepspeech-${_DS_VERSION} -models.tflite"
6062popd
6163
6264# remove one of the DS dependencies, based on architecture
@@ -80,12 +82,12 @@ npm install --production
8082
8183# keep only the compiled DS binary that we need
8284module_version=$( node -e ' console.log(`node-v${process.config.variables.node_module_version}`)' )
83- find " node_modules/${KEEP_DEP} /lib/binding/v0.8.0 " \
85+ find " node_modules/${KEEP_DEP} /lib/binding/v ${_DS_VERSION} " \
8486 -mindepth 1 \
8587 -maxdepth 1 \
8688 \! -name " ${ADDON_ARCH} " \
8789 -exec rm -rf {} \;
88- find " node_modules/${KEEP_DEP} /lib/binding/v0.8.0 /${ADDON_ARCH} " \
90+ find " node_modules/${KEEP_DEP} /lib/binding/v ${_DS_VERSION} /${ADDON_ARCH} " \
8991 -mindepth 1 \
9092 -maxdepth 1 \
9193 -type d \
You can’t perform that action at this time.
0 commit comments