-
Notifications
You must be signed in to change notification settings - Fork 16
/
copy.js
41 lines (36 loc) · 1.04 KB
/
copy.js
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
//
// Copyright 2021-2023 Picovoice Inc.
//
// You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
// file accompanying this source.
//
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
//
"use strict";
const ncp = require("ncp").ncp;
console.log("Copying library files...");
// PvRecorder Libs
ncp(
"../../lib/node",
"./lib",
function (err) {
if (err) {
return console.error(err);
}
console.log("Successfully copied library.");
}
)
console.log("Copying scripts...");
// Scripts
ncp(
"../../resources/scripts",
"./scripts",
function (err) {
if (err) {
return console.error(err);
}
console.log("Successfully copied scripts.")
}
)