summarylogtreecommitdiffstats
path: root/electron-builder-config.diff
blob: 7762e02e96b9dae656f806cf33d6a87fdfbc00ea (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
diff --git a/apps/studio/electron-builder-config.js b/apps/studio/electron-builder-config.js
index 361c7755b..da85570c6 100644
--- a/apps/studio/electron-builder-config.js
+++ b/apps/studio/electron-builder-config.js
@@ -33,6 +33,8 @@ module.exports = {
   asarUnpack: [
     'package.json'
   ],
+  electronDist: "%%ELECTRON_DIST%%",
+  electronVersion: "%%ELECTRON_VERSION%%",
   extraResources: [
     {
       from: './extra_resources/demo.db',
@@ -129,24 +131,11 @@ module.exports = {
       role: "Editor"
     }
   ],
-  mac: {
-    entitlements: "./build/entitlements.mac.plist",
-    entitlementsInherit: "./build/entitlements.mac.plist",
-    icon: './public/icons/mac/bk-icon.icns',
-    category: "public.app-category.developer-tools",
-    "hardenedRuntime": true,
-    notarize: true,
-    publish: ['github']
-  },
   linux: {
     icon: './public/icons/png/',
     category: "Development",
     target: [
-      'snap',
-      'deb',
-      'appImage',
-      'rpm',
-      'flatpak',
+      'dir',
       'pacman'
     ],
     desktop: {
@@ -154,61 +143,9 @@ module.exports = {
     },
     publish: ['github']
   },
-  deb: {
-    publish: [
-      'github'
-    ],
-    fpm: fpmOptions,
-    // when we upgrade Electron we need to check these
-    depends: ["libgtk-3-0", "libnotify4", "libnss3", "libxss1", "libxtst6", "xdg-utils", "libatspi2.0-0", "libuuid1", "libsecret-1-0", "gnupg"]
-  },
-  flatpak: {
-    runtime: "org.freedesktop.Platform",
-    runtimeVersion: "23.08",
-    sdk: "org.freedesktop.Sdk",
-    base: "org.electronjs.Electron2.BaseApp",
-    baseVersion: "23.08",
-    finishArgs: [
-      "--share=network",
-      "--socket=x11",
-      "--socket=wayland",
-      "--device=dri",
-      "--socket=pulseaudio",
-      "--filesystem=home",
-      "--talk-name=org.freedesktop.Notifications"
+  pacman: {
+    fpm: [
+      '--pacman-compression=none'
     ]
-  },
-  rpm: {
-    publish: [ 'github' ],
-    fpm: rpmFpmOptions,
-  },
-  snap: {
-    base: 'core22',
-    publish: [
-      'github',
-      'snapStore'
-    ],
-    environment: {
-      "ELECTRON_SNAP": "true"
-    },
-    plugs: ["default", "ssh-keys", "removable-media", "mount-observe"]
-  },
-  win: {
-    icon: './public/icons/png/512x512.png',
-    // FIXME: Add AppX/MSIX build back in once certificate issues resolved
-    target: ['nsis', 'portable'],
-    publish: ['github'],
-    sign: "./build/win/sign.js",
-  },
-  portable: {
-    "artifactName": "${productName}-${version}-portable.exe",
-  },
-  nsis: {
-    oneClick: false
-  },
-  appx: {
-    applicationId: "beekeeperstudio",
-    publisher: certSubject.replaceAll('"', """),
-    publisherDisplayName: "Beekeeper Studio"
   }
 }