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