mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 18:19:58 +00:00
Add snap support (#60)
* Initial app daemon implementation * Pass script path to child bridge processes * Change WebSocket server port * Fix error sending message whilst WebSocket connection is closing * Initial ext daemon connection implementation
This commit is contained in:
@@ -180,11 +180,17 @@ async function build () {
|
||||
fs.writeFileSync(path.join(BUILD_PATH, "package.json")
|
||||
, JSON.stringify(pkgManifest))
|
||||
|
||||
/**
|
||||
* With the BUILD_PATH/bridge dir, cannot build to
|
||||
* BUILD_PATH/bridge file.
|
||||
*/
|
||||
const tempExecutableName = `${executableName[argv.platform]}.temp`;
|
||||
|
||||
// Run pkg to create a single executable
|
||||
await pkg.exec([
|
||||
BUILD_PATH
|
||||
, "--target", `${pkgPlatform[argv.platform]}-${argv.arch}`
|
||||
, "--output", path.join(BUILD_PATH, executableName[argv.platform])
|
||||
, "--output", path.join(BUILD_PATH, tempExecutableName)
|
||||
]);
|
||||
|
||||
// Build NativeMacReceiverSelector
|
||||
@@ -226,16 +232,14 @@ async function build () {
|
||||
, { overwrite: true });
|
||||
}
|
||||
} else {
|
||||
const builtExecutableName = executableName[argv.platform];
|
||||
|
||||
// Move executable and app manifest to dist
|
||||
fs.moveSync(
|
||||
path.join(BUILD_PATH, manifestName)
|
||||
, path.join(DIST_PATH, manifestName)
|
||||
, { overwrite: true });
|
||||
fs.moveSync(
|
||||
path.join(BUILD_PATH, builtExecutableName)
|
||||
, path.join(DIST_PATH, builtExecutableName)
|
||||
path.join(BUILD_PATH, tempExecutableName)
|
||||
, path.join(DIST_PATH, executableName[argv.platform])
|
||||
, { overwrite: true });
|
||||
|
||||
if (isBuildingForMacOnMac) {
|
||||
|
||||
Reference in New Issue
Block a user