mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 03:19:54 +03:00
Fixes, Readme, Makers
This commit is contained in:
parent
6fe68a6b73
commit
0d1502e03d
28 changed files with 1055 additions and 408 deletions
|
@ -1,27 +1,81 @@
|
|||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
module.exports = {
|
||||
packagerConfig: {
|
||||
executableName: "inav-configurator",
|
||||
asar: false,
|
||||
icon: 'images/inav'
|
||||
icon: 'images/inav',
|
||||
ignore: [
|
||||
"^(\/\.vscode$)",
|
||||
"^(\/support$)",
|
||||
".gitattributes",
|
||||
".gitignore",
|
||||
"3D_model_creation.md",
|
||||
"LICENSE",
|
||||
"MAPPROXY.md",
|
||||
"package-lock.json",
|
||||
"README.md",
|
||||
"inav_icon_128.psd",
|
||||
]
|
||||
},
|
||||
rebuildConfig: {},
|
||||
makers: [
|
||||
{
|
||||
name: '@electron-forge/maker-squirrel',
|
||||
name: '@electron-forge/maker-wix',
|
||||
config: {
|
||||
iconUrl: "https://raw.githubusercontent.com/iNavFlight/inav-configurator/master/images/inav.ico",
|
||||
loadingGif: "images/inav-installing.gif"
|
||||
},
|
||||
name: "INAV Configurator",
|
||||
shortName: "INAV",
|
||||
description: "Configurator for the open source flight controller software INAV.",
|
||||
programFilesFolderName: "inav-configurator",
|
||||
shortcutFolderName: "INAV",
|
||||
manufacturer: "The INAV open source project",
|
||||
appUserModelId: "com.inav.configurator",
|
||||
icon: path.join(__dirname, "./assets/windows/inav_installer_icon.ico"),
|
||||
upgradeCode: "13606ff3-b0bc-4dde-8fac-805bc8aed2f8",
|
||||
ui : {
|
||||
enabled: false,
|
||||
chooseDirectory: true,
|
||||
images: {
|
||||
background: path.join(__dirname, "./assets/windows/background.jpg"),
|
||||
banner: path.join(__dirname, "./assets/windows/banner.jpg")
|
||||
}
|
||||
},
|
||||
beforeCreate: (msiCreator) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
fs.readFile(path.join(__dirname,"./assets/windows/wix.xml"), "utf8" , (err, content) => {
|
||||
if (err) {
|
||||
reject (err);
|
||||
}
|
||||
msiCreator.wixTemplate = content;
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: '@electron-forge/maker-dmg',
|
||||
config: {
|
||||
name: "INAV Configurator",
|
||||
background: "./assets/osx/dmg-background.png"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
name: '@electron-forge/maker-zip',
|
||||
platforms: ['win32', 'darwin'],
|
||||
platforms: ['win32', 'linux', 'darwin'],
|
||||
},
|
||||
{
|
||||
name: '@electron-forge/maker-deb',
|
||||
config: {
|
||||
options: {
|
||||
icon: "images/inav_icon_128.png"
|
||||
name: "inav-configurator",
|
||||
productName: "INAV Configurator",
|
||||
categories: ["Utility"],
|
||||
icon: "./assets/linux/icon/inav_icon_128.png",
|
||||
description: "Configurator for the open source flight controller software INAV.",
|
||||
homepage: "https://github.com/inavflight/",
|
||||
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -29,7 +83,13 @@ module.exports = {
|
|||
name: '@electron-forge/maker-rpm',
|
||||
config: {
|
||||
options: {
|
||||
icon: "images/inav_icon_128.png"
|
||||
name: "inav-configurator",
|
||||
productName: "INAV Configurator",
|
||||
license: "GPL-3.0",
|
||||
categories: ["Utility"],
|
||||
icon: "./assets/linux/icon/inav_icon_128.png",
|
||||
description: "Configurator for the open source flight controller software INAV.",
|
||||
homepage: "https://github.com/inavflight/",
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue