1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

Fixed ownership of installed files on debian.

This commit is contained in:
mikeller 2019-03-24 11:52:59 +13:00
parent 0d648a1a86
commit 5f5166cc41
29 changed files with 11 additions and 8 deletions

0
changelog.html Executable file → Normal file
View file

View file

@ -29,6 +29,8 @@ const APPS_DIR = './apps/';
const DEBUG_DIR = './debug/'; const DEBUG_DIR = './debug/';
const RELEASE_DIR = './release/'; const RELEASE_DIR = './release/';
const LINUX_INSTALL_DIR = '/opt/betaflight';
var nwBuilderOptions = { var nwBuilderOptions = {
version: '0.35.3', version: '0.35.3',
files: './dist/**/*', files: './dist/**/*',
@ -186,7 +188,7 @@ function getRunDebugAppCommand(arch) {
} }
function getReleaseFilename(platform, ext) { function getReleaseFilename(platform, ext) {
return 'betaflight-configurator_' + pkg.version + '_' + platform + '.' + ext; return `${pkg.name}_${pkg.version}_${platform}.${ext}`;
} }
function clean_dist() { function clean_dist() {
@ -545,11 +547,12 @@ function release_deb(arch, done) {
architecture: getLinuxPackageArch('deb', arch), architecture: getLinuxPackageArch('deb', arch),
maintainer: pkg.author, maintainer: pkg.author,
description: pkg.description, description: pkg.description,
postinst: ['xdg-desktop-menu install /opt/betaflight/betaflight-configurator/betaflight-configurator.desktop'], preinst: [`rm -rf ${LINUX_INSTALL_DIR}/${pkg.name}`],
prerm: ['xdg-desktop-menu uninstall betaflight-configurator.desktop'], postinst: [`chown root:root ${LINUX_INSTALL_DIR}`, `chown -R root:root ${LINUX_INSTALL_DIR}/${pkg.name}`, `xdg-desktop-menu install ${LINUX_INSTALL_DIR}/${pkg.name}/${pkg.name}.desktop`],
prerm: [`xdg-desktop-menu uninstall ${pkg.name}.desktop`],
depends: 'libgconf-2-4', depends: 'libgconf-2-4',
changelog: [], changelog: [],
_target: 'opt/betaflight/betaflight-configurator', _target: `${LINUX_INSTALL_DIR}/${pkg.name}`,
_out: RELEASE_DIR, _out: RELEASE_DIR,
_copyright: 'assets/linux/copyright', _copyright: 'assets/linux/copyright',
_clean: true _clean: true
@ -579,9 +582,9 @@ function release_rpm(arch, done) {
files: files:
[ { cwd: path.join(APPS_DIR, pkg.name, arch), [ { cwd: path.join(APPS_DIR, pkg.name, arch),
src: '*', src: '*',
dest: '/opt/betaflight/betaflight-configurator' } ], dest: `${LINUX_INSTALL_DIR}/${pkg.name}` } ],
postInstallScript: ['xdg-desktop-menu install /opt/betaflight/betaflight-configurator/betaflight-configurator.desktop'], postInstallScript: [`xdg-desktop-menu install ${LINUX_INSTALL_DIR}/${pkg.name}/${pkg.name}.desktop`],
preUninstallScript: ['xdg-desktop-menu uninstall betaflight-configurator.desktop'], preUninstallScript: [`xdg-desktop-menu uninstall ${pkg.name}.desktop`],
tempDir: path.join(RELEASE_DIR,'tmp-rpm-build-' + arch), tempDir: path.join(RELEASE_DIR,'tmp-rpm-build-' + arch),
keepTemp: false, keepTemp: false,
verbose: false, verbose: false,

0
libraries/jbox/jBox.css Executable file → Normal file
View file

0
libraries/jbox/jBox.min.js vendored Executable file → Normal file
View file

0
libraries/jbox/themes/ModalBorder.css Executable file → Normal file
View file

0
libraries/jbox/themes/NoticeBorder.css Executable file → Normal file
View file

0
libraries/jbox/themes/TooltipBorder.css Executable file → Normal file
View file

0
libraries/jbox/themes/TooltipDark.css Executable file → Normal file
View file

0
libraries/q.js Executable file → Normal file
View file

0
manifest.json Executable file → Normal file
View file

2
package-lock.json generated
View file

@ -4639,7 +4639,7 @@
"semver": "^5.5.0", "semver": "^5.5.0",
"simple-glob": "~0.2.0", "simple-glob": "~0.2.0",
"tar-fs": "^1.13.0", "tar-fs": "^1.13.0",
"temp": "github:adam-lynch/node-temp#remove_tmpdir_dep", "temp": "github:adam-lynch/node-temp#279c1350cb7e4f02515d91da9e35d39a40774016",
"thenify": "^3.3.0", "thenify": "^3.3.0",
"update-notifier": "^2.4.0", "update-notifier": "^2.4.0",
"winresourcer": "^0.9.0" "winresourcer": "^0.9.0"

0
resources/models/fallback.png Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Before After
Before After

0
src/css/tabs/landing.css Executable file → Normal file
View file

0
src/css/tabs/logging.css Executable file → Normal file
View file

0
src/css/tabs/servos.css Executable file → Normal file
View file

0
src/js/RateCurve.js Executable file → Normal file
View file

0
src/js/data_storage.js Executable file → Normal file
View file

0
src/js/eventPage.js Executable file → Normal file
View file

0
src/js/msp.js Executable file → Normal file
View file

0
src/js/port_handler.js Executable file → Normal file
View file

0
src/js/serial_backend.js Executable file → Normal file
View file

0
src/js/tabs/firmware_flasher.js Executable file → Normal file
View file

0
src/js/tabs/osd.js Executable file → Normal file
View file

0
src/js/tabs/servos.js Executable file → Normal file
View file

0
src/main.html Executable file → Normal file
View file

0
src/support/svg_model_motors.rb Executable file → Normal file
View file

0
src/tabs/firmware_flasher.html Executable file → Normal file
View file

0
src/tabs/logging.html Executable file → Normal file
View file

0
src/tabs/servos.html Executable file → Normal file
View file