mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-13 19:09:58 +00:00
Fix manifest location on Fedora
This commit is contained in:
@@ -124,9 +124,9 @@ function package (platform) {
|
|||||||
case "linux":
|
case "linux":
|
||||||
switch (argv.packageType) {
|
switch (argv.packageType) {
|
||||||
case "deb":
|
case "deb":
|
||||||
return packageLinuxDeb(platform);
|
return packageLinuxDeb(platform, argv.packageType);
|
||||||
case "rpm":
|
case "rpm":
|
||||||
return packageLinuxRpm(platform);
|
return packageLinuxRpm(platform, argv.packageType);
|
||||||
}
|
}
|
||||||
|
|
||||||
case "win32":
|
case "win32":
|
||||||
@@ -208,13 +208,14 @@ function packageDarwin (platform) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function packageLinuxDeb (platform) {
|
function packageLinuxDeb (platform, packageType) {
|
||||||
const installerName = `${applicationName}.deb`;
|
const installerName = `${applicationName}.deb`;
|
||||||
|
|
||||||
// Create root
|
// Create root
|
||||||
const rootPath = path.join(BUILD_PATH, "root");
|
const rootPath = path.join(BUILD_PATH, "root");
|
||||||
const rootExecutablePath = path.join(rootPath, executablePath[platform]);
|
const rootExecutablePath = path.join(rootPath, executablePath[platform]);
|
||||||
const rootManifestPath = path.join(rootPath, manifestPath[platform]);
|
const rootManifestPath = path.join(rootPath
|
||||||
|
, manifestPath[platform][packageType]);
|
||||||
|
|
||||||
fs.ensureDirSync(rootExecutablePath, { recursive: true });
|
fs.ensureDirSync(rootExecutablePath, { recursive: true });
|
||||||
fs.ensureDirSync(rootManifestPath, { recursive: true });
|
fs.ensureDirSync(rootManifestPath, { recursive: true });
|
||||||
@@ -255,7 +256,7 @@ function packageLinuxDeb (platform) {
|
|||||||
return installerName;
|
return installerName;
|
||||||
}
|
}
|
||||||
|
|
||||||
function packageLinuxRpm (platform) {
|
function packageLinuxRpm (platform, packageType) {
|
||||||
const specPath = path.join(__dirname
|
const specPath = path.join(__dirname
|
||||||
, "../packaging/linux/rpm/package.spec");
|
, "../packaging/linux/rpm/package.spec");
|
||||||
|
|
||||||
@@ -266,7 +267,7 @@ function packageLinuxRpm (platform) {
|
|||||||
, applicationName
|
, applicationName
|
||||||
, applicationVersion
|
, applicationVersion
|
||||||
, executablePath: executablePath[platform]
|
, executablePath: executablePath[platform]
|
||||||
, manifestPath: manifestPath[platform]
|
, manifestPath: manifestPath[platform][packageType]
|
||||||
, executableName: executableName[platform]
|
, executableName: executableName[platform]
|
||||||
, manifestName
|
, manifestName
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -26,7 +26,10 @@ exports.manifestName = `${__applicationName}.json`;
|
|||||||
exports.manifestPath = {
|
exports.manifestPath = {
|
||||||
win32: `C:\\Program Files\\${__applicationDirectoryName}\\`
|
win32: `C:\\Program Files\\${__applicationDirectoryName}\\`
|
||||||
, darwin: "/Library/Application Support/Mozilla/NativeMessagingHosts/"
|
, darwin: "/Library/Application Support/Mozilla/NativeMessagingHosts/"
|
||||||
, linux: "/usr/lib/mozilla/native-messaging-hosts/"
|
, linux: {
|
||||||
|
deb: "/usr/lib/mozilla/native-messaging-hosts/"
|
||||||
|
, rpm: "/usr/lib64/mozilla/native-messaging-hosts/"
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.pkgPlatform = {
|
exports.pkgPlatform = {
|
||||||
|
|||||||
Reference in New Issue
Block a user