mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-13 19:09:58 +00:00
Improve app build script output
This commit is contained in:
@@ -207,14 +207,13 @@ async function build () {
|
|||||||
const selectorPath = path.join(__dirname, "../selector/mac/");
|
const selectorPath = path.join(__dirname, "../selector/mac/");
|
||||||
const derivedDataPath = path.join(__dirname, "../selector/mac/build/");
|
const derivedDataPath = path.join(__dirname, "../selector/mac/build/");
|
||||||
|
|
||||||
let buildCommand = `
|
spawnSync(`
|
||||||
xcodebuild -project ${selectorPath}/fx_cast_selector.xcodeproj \
|
xcodebuild -project ${selectorPath}/fx_cast_selector.xcodeproj \
|
||||||
-configuration Release \
|
-configuration Release \
|
||||||
-scheme fx_cast_selector \
|
-scheme fx_cast_selector \
|
||||||
-derivedDataPath ${derivedDataPath} \
|
-derivedDataPath ${derivedDataPath} \
|
||||||
build`;
|
build`
|
||||||
|
, spawnOptions);
|
||||||
spawnSync(buildCommand, spawnOptions);
|
|
||||||
|
|
||||||
const selectorBundlePath = path.join(derivedDataPath
|
const selectorBundlePath = path.join(derivedDataPath
|
||||||
, "Build/Products/Release/", selectorExecutableName);
|
, "Build/Products/Release/", selectorExecutableName);
|
||||||
@@ -380,23 +379,23 @@ function packageDarwin (
|
|||||||
|
|
||||||
|
|
||||||
// Build component package
|
// Build component package
|
||||||
spawnSync(
|
spawnSync(`
|
||||||
`pkgbuild --root ${rootPath} `
|
pkgbuild --root ${rootPath} \
|
||||||
+ `--identifier "tf.matt.${applicationName}" `
|
--identifier "tf.matt.${applicationName}" \
|
||||||
+ `--version "${applicationVersion}" `
|
--version "${applicationVersion}" \
|
||||||
+ `--scripts ${path.join(packagingOutputDir, "scripts")} `
|
--scripts ${path.join(packagingOutputDir, "scripts")} \
|
||||||
+ `${path.join(BUILD_PATH, componentName)}`
|
${path.join(BUILD_PATH, componentName)}`
|
||||||
, { shell: true });
|
, spawnOptions);
|
||||||
|
|
||||||
// Distribution XML file
|
// Distribution XML file
|
||||||
const distFilePath = path.join(packagingOutputDir, "distribution.xml");
|
const distFilePath = path.join(packagingOutputDir, "distribution.xml");
|
||||||
|
|
||||||
// Build installer package
|
// Build installer package
|
||||||
spawnSync(
|
spawnSync(`
|
||||||
`productbuild --distribution ${distFilePath} `
|
productbuild --distribution ${distFilePath} \
|
||||||
+ `--package-path ${BUILD_PATH} `
|
--package-path ${BUILD_PATH} \
|
||||||
+ `${path.join(BUILD_PATH, outputName)}`
|
${path.join(BUILD_PATH, outputName)}`
|
||||||
, { shell: true });
|
, spawnOptions);
|
||||||
|
|
||||||
return outputName;
|
return outputName;
|
||||||
}
|
}
|
||||||
@@ -459,10 +458,10 @@ function packageLinuxDeb (
|
|||||||
, view));
|
, view));
|
||||||
|
|
||||||
// Build .deb package
|
// Build .deb package
|
||||||
spawnSync(
|
spawnSync(`
|
||||||
`dpkg-deb --build ${rootPath} `
|
dpkg-deb --build ${rootPath} \
|
||||||
+ `${path.join(BUILD_PATH, outputName)}`
|
${path.join(BUILD_PATH, outputName)}`
|
||||||
, { shell: true});
|
, spawnOptions);
|
||||||
|
|
||||||
return outputName;
|
return outputName;
|
||||||
}
|
}
|
||||||
@@ -509,13 +508,13 @@ function packageLinuxRpm (
|
|||||||
};
|
};
|
||||||
|
|
||||||
// TODO: Use argv.arch
|
// TODO: Use argv.arch
|
||||||
spawnSync(
|
spawnSync(`
|
||||||
`rpmbuild -bb ${specOutputPath} `
|
rpmbuild -bb ${specOutputPath} \
|
||||||
+ `--define "_distdir ${BUILD_PATH}" `
|
--define "_distdir ${BUILD_PATH}" \
|
||||||
+ `--define "_rpmdir ${BUILD_PATH}" `
|
--define "_rpmdir ${BUILD_PATH}" \
|
||||||
+ `--define "_rpmfilename ${outputName}" `
|
--define "_rpmfilename ${outputName}" \
|
||||||
+ `--target=${archMap[arch]}-linux`
|
--target=${archMap[arch]}-linux`
|
||||||
, { shell: true });
|
, spawnOptions);
|
||||||
|
|
||||||
return outputName;
|
return outputName;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user