forked from mozilla/DeepSpeech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tc-package.sh
executable file
·41 lines (29 loc) · 1.25 KB
/
tc-package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
set -xe
source $(dirname "$0")/tc-tests-utils.sh
mkdir -p ${TASKCLUSTER_ARTIFACTS} || true
tar -C ${DS_ROOT_TASK}/DeepSpeech/tf/bazel-bin/tensorflow/ \
-cf ${TASKCLUSTER_ARTIFACTS}/native_client.tar \
libtensorflow_cc.so
tar -C ${DS_ROOT_TASK}/DeepSpeech/tf/bazel-bin/native_client/ \
-uf ${TASKCLUSTER_ARTIFACTS}/native_client.tar \
libdeepspeech.so \
libdeepspeech_utils.so \
libctc_decoder_with_kenlm.so \
generate_trie
tar -C ${DS_ROOT_TASK}/DeepSpeech/ds/ \
-uf ${TASKCLUSTER_ARTIFACTS}/native_client.tar \
LICENSE
tar -C ${DS_ROOT_TASK}/DeepSpeech/ds/native_client/ \
-uf ${TASKCLUSTER_ARTIFACTS}/native_client.tar \
deepspeech
tar -C ${DS_ROOT_TASK}/DeepSpeech/ds/native_client/kenlm/ \
-uf ${TASKCLUSTER_ARTIFACTS}/native_client.tar \
README.mozilla
if [ -d ${DS_ROOT_TASK}/DeepSpeech/ds/wheels ]; then
cp ${DS_ROOT_TASK}/DeepSpeech/ds/wheels/* ${TASKCLUSTER_ARTIFACTS}/
fi
find ${DS_ROOT_TASK}/DeepSpeech/ds/native_client/javascript/ -type f -name "deepspeech-*.tgz" -exec cp {} ${TASKCLUSTER_ARTIFACTS}/ \;
pixz -9 ${TASKCLUSTER_ARTIFACTS}/native_client.tar ${TASKCLUSTER_ARTIFACTS}/native_client.tar.xz
rm ${TASKCLUSTER_ARTIFACTS}/native_client.tar
cp ${DS_ROOT_TASK}/DeepSpeech/ds/data/alphabet.txt ${TASKCLUSTER_ARTIFACTS}/