mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 10:09:59 +00:00
Remove native receiver selector
This commit is contained in:
@@ -182,29 +182,6 @@ NODE_PATH="${modulesDir}" node $(dirname $0)/src/main.js --__name $(basename $0)
|
||||
fs.chmodSync(path.resolve(BUILD_PATH, file), 0o755);
|
||||
}
|
||||
|
||||
|
||||
// Build NativeMacReceiverSelector
|
||||
if (process.platform === "darwin" && !argv.skipNativeBuilds) {
|
||||
const selectorPath = path.join(__dirname, "../selector/mac/");
|
||||
const derivedDataPath = path.join(__dirname, "../selector/mac/build/");
|
||||
|
||||
spawnSync(`
|
||||
xcodebuild -project ${selectorPath}/fx_cast_selector.xcodeproj \
|
||||
-configuration Release \
|
||||
-scheme fx_cast_selector \
|
||||
-derivedDataPath ${derivedDataPath} \
|
||||
build`
|
||||
, spawnOptions);
|
||||
|
||||
const selectorBundlePath = path.join(derivedDataPath
|
||||
, "Build/Products/Release/", paths.SELECTOR_EXECUTABLE_NAME);
|
||||
|
||||
fs.moveSync(selectorBundlePath
|
||||
, path.join(BUILD_PATH, paths.SELECTOR_EXECUTABLE_NAME));
|
||||
fs.removeSync(derivedDataPath);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* If packaging, create an installer package and move it to
|
||||
* dist, otherwise move the built executable and app manifest
|
||||
@@ -313,12 +290,6 @@ function packageDarwin (
|
||||
fs.moveSync(path.join(BUILD_PATH, paths.MANIFEST_NAME)
|
||||
, path.join(rootManifestPath, paths.MANIFEST_NAME));
|
||||
|
||||
if (process.platform === "darwin" && !argv.skipNativeBuilds) {
|
||||
// Move selector executable alongside main executable
|
||||
fs.moveSync(path.join(BUILD_PATH, paths.SELECTOR_EXECUTABLE_NAME)
|
||||
, path.join(rootExecutablePath, paths.SELECTOR_EXECUTABLE_NAME));
|
||||
}
|
||||
|
||||
|
||||
// Copy static files to be processed
|
||||
fs.copySync(packagingDir, packagingOutputDir);
|
||||
|
||||
@@ -21,7 +21,6 @@ exports.pkgPlatformMap = {
|
||||
};
|
||||
|
||||
exports.MANIFEST_NAME = `${__applicationName}.json`;
|
||||
exports.SELECTOR_EXECUTABLE_NAME = "fx_cast_selector.app";
|
||||
|
||||
exports.getExecutableName = platform => {
|
||||
switch (platform) {
|
||||
|
||||
Reference in New Issue
Block a user