mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 09:39:58 +00:00
Fix macOS package build
This commit is contained in:
@@ -204,13 +204,13 @@ async function build () {
|
|||||||
.map(fileName => `"${fileName}"`)
|
.map(fileName => `"${fileName}"`)
|
||||||
.join(" ");
|
.join(" ");
|
||||||
|
|
||||||
const buildCommand = `
|
let buildCommand = `
|
||||||
swiftc -o "${path.join(BUILD_PATH, selectorExecutableName)}" \
|
swiftc -o "${path.join(BUILD_PATH, selectorExecutableName)}" \
|
||||||
${formattedSourceFiles}`;
|
${formattedSourceFiles}`;
|
||||||
|
|
||||||
// Build with optimizations if packaging
|
// Build with optimizations if packaging
|
||||||
if (argv.package) {
|
if (argv.package) {
|
||||||
buildCommand += " -0size";
|
buildCommand += " -Osize";
|
||||||
}
|
}
|
||||||
|
|
||||||
spawnSync(buildCommand, spawnOptions);
|
spawnSync(buildCommand, spawnOptions);
|
||||||
@@ -329,7 +329,7 @@ function packageDarwin (
|
|||||||
fs.ensureDirSync(rootManifestPath, { recursive: true });
|
fs.ensureDirSync(rootManifestPath, { recursive: true });
|
||||||
|
|
||||||
// Move files to root
|
// Move files to root
|
||||||
fs.moveSync(path.join(BUILD_PATH, platformExecutableName)
|
fs.moveSync(path.join(BUILD_PATH, `${platformExecutableName}.temp`)
|
||||||
, path.join(rootExecutablePath, platformExecutableName));
|
, path.join(rootExecutablePath, platformExecutableName));
|
||||||
fs.moveSync(path.join(BUILD_PATH, manifestName)
|
fs.moveSync(path.join(BUILD_PATH, manifestName)
|
||||||
, path.join(rootManifestPath, manifestName));
|
, path.join(rootManifestPath, manifestName));
|
||||||
|
|||||||
Reference in New Issue
Block a user