summaryrefslogtreecommitdiffhomepage
path: root/gui/electron-builder.yml
blob: 44f197a0c4412788721f5011d971f9d76c97091e (plain)
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
appId: net.mullvad.vpn
copyright: Amagicom AB
productName: Mullvad VPN

asar: true

# assets bundled on all platforms
extraResources:
  # Mullvad root CA certificate used by OpenVPN
  - from: ../dist-assets/ca.crt
    to: .
  - from: ../dist-assets/api_root_ca.pem
    to: .
  - from: ../dist-assets/relays.json
    to: .
  - from: ../CHANGELOG.md
    to: .

directories:
  buildResources: ../dist-assets/
  output: ../dist/

# override package.json
extraMetadata:
  name: mullvad-vpn

files:
  - package.json
  - init.js
  - build/
  - node_modules/

mac:
  target: pkg
  artifactName: MullvadVPN-${version}.${ext}
  category: public.app-category.tools
  extendInfo:
    LSUIElement: true
    NSUserNotificationAlertStyle: alert
  extraResources:
    - from: ../dist-assets/mullvad
      to: .
    - from: ../dist-assets/problem-report
      to: .
    - from: ../dist-assets/mullvad-daemon
      to: .
    - from: ../dist-assets/libtalpid_openvpn_plugin.dylib
      to: .
    - from: ../dist-assets/binaries/macos/openvpn
      to: .
    - from: ../dist-assets/binaries/macos/sslocal
      to: .
    - from: ../dist-assets/uninstall_macos.sh
      to: ./uninstall.sh

pkg:
  allowAnywhere: false
  allowCurrentUserHome: false
  isRelocatable: false

nsis:
  guid: "Mullvad VPN"
  oneClick: false
  perMachine: true
  allowElevation: true
  allowToChangeInstallationDirectory: false
  include: ../dist-assets/windows/installer.nsh
  installerSidebar: ../dist-assets/windows/installersidebar.bmp

win:
  target:
    - target: nsis
      arch:
        - x64
  artifactName: MullvadVPN-${version}.${ext}
  publisherName: Amagicom AB
  signingHashAlgorithms:
    - sha256
  signDlls: true
  extraResources:
    - from: ../dist-assets/mullvad.exe
      to: .
    - from: ../dist-assets/problem-report.exe
      to: .
    - from: ../dist-assets/mullvad-daemon.exe
      to: .
    - from: ../dist-assets/talpid_openvpn_plugin.dll
      to: .
    - from: ../windows/winfw/bin/x64-Release/winfw.dll
      to: .
    - from: ../windows/windns/bin/x64-Release/windns.dll
      to: .
    - from: ../windows/winroute/bin/x64-Release/winroute.dll
      to: .
    - from: ../dist-assets/binaries/windows/openvpn.exe
      to: .
    - from: ../dist-assets/binaries/windows/sslocal.exe
      to: .

linux:
  target:
    - deb
    - rpm
  artifactName: MullvadVPN-${version}_${arch}.${ext}
  category: Network
  extraResources:
    - from: ../dist-assets/problem-report
      to: .
    - from: ../dist-assets/mullvad-daemon
      to: .
    - from: ../dist-assets/libtalpid_openvpn_plugin.so
      to: .
    - from: ../dist-assets/binaries/linux/openvpn
      to: .
    - from: ../dist-assets/binaries/linux/sslocal
      to: .
    - from: ../dist-assets/linux/mullvad-daemon.conf
      to: .
    - from: ../dist-assets/linux/mullvad-daemon.service
      to: .

deb:
  fpm: ["--before-install", "../dist-assets/linux/before-install.sh",
       "--before-remove", "../dist-assets/linux/before-remove.sh",
       "--config-files", "/opt/Mullvad VPN/resources/mullvad-daemon.service",
       "--config-files", "/opt/Mullvad VPN/resources/mullvad-daemon.conf",
       "../dist-assets/mullvad=/usr/bin/",
       ]
  afterInstall: ../dist-assets/linux/after-install.sh
  afterRemove: ../dist-assets/linux/after-remove.sh
  depends:
    - iputils-ping

rpm:
  fpm: ["--before-install", "../dist-assets/linux/before-install.sh",
       "--before-remove", "../dist-assets/linux/before-remove.sh",
       "--rpm-posttrans", "../dist-assets/linux/post-transaction.sh",
       "--config-files", "/opt/Mullvad VPN/resources/mullvad-daemon.service",
       "--config-files", "/opt/Mullvad VPN/resources/mullvad-daemon.conf",
       "../dist-assets/mullvad=/usr/bin/",
       ]
  afterInstall: ../dist-assets/linux/after-install.sh
  afterRemove: ../dist-assets/linux/after-remove.sh
  depends:
      - libXScrnSaver
      - libnotify
      - libnsl
      - dbus-libs