forked from rancher-sandbox/rancher-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-builder.yml
90 lines (90 loc) · 2.84 KB
/
electron-builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
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
icon: ./resources/icons/linux
synopsis: Kubernetes and container management on the desktop
description: Rancher Desktop is an open-source project to bring Kubernetes and container management to the desktop
target: [ flatpak, tar.gz, rpm, deb ]
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
- --filesystem=~/.local/bin: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"]
modules:
- name: qemu
config-opts:
- "--disable-user"
- "--enable-kvm"
- "--target-list=x86_64-softmmu"
sources:
- type: archive
url: https://download.qemu.org/qemu-6.1.0.tar.xz
sha256: eebc089db3414bbeedf1e464beda0a7515aad30f73261abc246c9b27503a3c96
rpm:
depends:
- qemu
fpm:
# Make sure not /usr/lib/.build-id artifacts are created
# This config is likely to be missing in non RPM based hosts
- --rpm-rpmbuild-define=_build_id_links none
deb:
depends:
- qemu-utils
- qemu-system-x86