mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 02:29:59 +00:00
Fix Linux build issues
This commit is contained in:
@@ -111,7 +111,13 @@ async function build () {
|
|||||||
, spawnOptions);
|
, spawnOptions);
|
||||||
|
|
||||||
// Move tsc output to build dir
|
// 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
|
// Copy other files
|
||||||
fs.copySync(SRC_PATH, BUILD_PATH, {
|
fs.copySync(SRC_PATH, BUILD_PATH, {
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ switch (platform) {
|
|||||||
case "darwin":
|
case "darwin":
|
||||||
case "linux": {
|
case "linux": {
|
||||||
// Manifest location within home directory
|
// Manifest location within home directory
|
||||||
const destination = path.join(os.homedir(), manifestPath[platform]);
|
const destination = path.join(os.homedir(), platform === "linux"
|
||||||
|
? ".mozilla/native-messaging-hosts/"
|
||||||
|
: manifestPath[platform]);
|
||||||
|
|
||||||
if (argv.remove) {
|
if (argv.remove) {
|
||||||
fs.remove(path.join(destination, manifestName));
|
fs.remove(path.join(destination, manifestName));
|
||||||
|
|||||||
Reference in New Issue
Block a user