Fix Linux build issues

This commit is contained in:
hensm
2019-05-07 20:16:37 +01:00
parent 4ac2dcad65
commit 137f6519be
2 changed files with 10 additions and 2 deletions

View File

@@ -111,7 +111,13 @@ async function build () {
, spawnOptions);
// Move tsc output to build dir
fs.moveSync(path.join(BUILD_PATH, "src"), BUILD_PATH);
if (process.platform === "linux") {
// Quick workaround for issue on linux
spawnSync("mv", [ path.join(BUILD_PATH, "src/*"), BUILD_PATH ]
, spawnOptions);
} else {
fs.moveSync(path.join(BUILD_PATH, "src"), BUILD_PATH);
}
// Copy other files
fs.copySync(SRC_PATH, BUILD_PATH, {