Files
rancher-desktop/electron-builder.yml
David Cassany f13976e8bd Fix system tray on KDE
Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-06 13:55:48 +02:00

93 lines
3.0 KiB
YAML

copyright: Copyright © 2021 SUSE
productName: Rancher Desktop
icon: ./resources/icons/logo-square-512.png
appId: io.rancherdesktop.app
asar: true
extraResources:
- resources/
- '!resources/darwin/lima-*.tgz'
- '!resources/linux/lima-*.tar.gz'
- '!resources/linux/misc/*.in'
files:
- dist/app/**/*
mac:
entitlements: "build/entitlements.mac.plist"
entitlementsInherit: "build/entitlements.mac.inherit.plist"
darkModeSupport: true
hardenedRuntime: true
gatekeeperAssess: false
extendInfo:
NSCameraUsageDescription: ~
NSMicrophoneUsageDescription: ~
icon: ./resources/icons/mac-icon.png
target: [ dmg, zip ]
afterSign: "scripts/notarize.js"
win:
target: [ nsis, zip ]
signingHashAlgorithms: [ sha256 ] # We only support Windows 10 + WSL2
requestedExecutionLevel: asInvoker # The _app_ doesn't need privileges
linux:
category: Utility
executableName: rancher-desktop
target: [ flatpak, zip ]
nsis:
license: LICENSE
include: build/installer.nsh
oneClick: false # Needed for restart prompt
publish:
provider: custom
upgradeServer: https://desktop.version.rancher.io/v1/checkupgrade
vPrefixedTagName: true
flatpak:
license: LICENSE
base: org.electronjs.Electron2.BaseApp
baseVersion: "21.08"
runtime: org.freedesktop.Platform
runtimeVersion: "21.08"
sdk: org.freedesktop.Sdk
branch: main
useWaylandFlags: false
finishArgs:
- --filesystem=xdg-config/rancher-desktop:create
- --filesystem=xdg-cache/rancher-desktop:create
- --filesystem=xdg-data/rancher-desktop:create
- --filesystem=~/.kube:create
- --filesystem=~/.kuberlr:create
- --device=kvm
- --device=dri
- --share=ipc
- --socket=x11
- --socket=wayland
- --share=network
- --talk-name=org.freedesktop.Notifications # Is it really needed?
- --own-name=org.kde.* # Fixes Tray in KDE (https://github.com/flathub/im.riot.Riot/issues/100)
files:
- ["dist/linux-unpacked/resources/resources/linux/misc/io.rancherdesktop.app.appdata.xml", "/share/metainfo/io.rancherdesktop.app.appdata.xml"]
- ["dist/linux-unpacked/resources/resources/linux/misc/io.rancherdesktop.app.desktop", "/share/applications/io.rancherdesktop.app.desktop"]
- ["dist/linux-unpacked/resources/resources/icons/linux", "/share/icons/hicolor"]
modules:
- name: qemu
config-opts:
- "--disable-user"
- "--enable-kvm"
#- "--enable-vde"
- "--target-list=x86_64-softmmu"
sources:
- type: archive
url: https://download.qemu.org/qemu-6.1.0.tar.xz
sha256: eebc089db3414bbeedf1e464beda0a7515aad30f73261abc246c9b27503a3c96
# We do not need vde under linux
#modules:
#- name: vde-2
# sources:
# - type: git
# url: https://github.com/virtualsquare/vde-2
# tag: vde-2
# buildsystem: simple
# build-commands:
# - |
# cd 2.3.2
# autoreconf --install
# ./configure --prefix=/app --disable-python --disable-cryptcab
# make install