summarylogtreecommitdiffstats
path: root/build.patch
blob: b8ab65665520e9beae0e10e57bd4a0d4a2d258e3 (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
diff --git a/app/src/plugins.ts b/app/src/plugins.ts
index f21d57e..6e2be82 100644
--- a/app/src/plugins.ts
+++ b/app/src/plugins.ts
@@ -17,7 +17,7 @@ function normalizePath (p: string): string {
     return p
 }
 
-const builtinPluginsPath = process.env.TABBY_DEV ? path.dirname(remote.app.getAppPath()) : path.join((process as any).resourcesPath, 'builtin-plugins')
+const builtinPluginsPath = process.env.TABBY_DEV ? path.dirname(remote.app.getAppPath()) : path.join(remote.app.getAppPath().replace('/app.asar', ''), 'builtin-plugins')
 
 const cachedBuiltinModules = {
     '@angular/animations': require('@angular/animations'),
diff --git a/scripts/build-linux.mjs b/scripts/build-linux.mjs
index d91ec14..c085caf 100755
--- a/scripts/build-linux.mjs
+++ b/scripts/build-linux.mjs
@@ -9,7 +9,7 @@ process.env.ARCH = (process.env.ARCH || process.arch) === 'arm' ? 'armv7l' : pro
 
 builder({
     dir: true,
-    linux: ['deb', 'tar.gz', 'rpm', 'pacman', 'appimage'],
+    linux: ['dir'],
     armv7l: process.env.ARCH === 'armv7l',
     arm64: process.env.ARCH === 'arm64',
     config: {
@@ -24,6 +24,8 @@ builder({
                 channel: `latest-${process.env.ARCH}`,
             },
         ] : undefined,
+        electronDist: '@ELECTRON_DIST@',
+        electronVersion: '@ELECTRON_VERSION@',
     },
     publish: process.env.KEYGEN_TOKEN ? isTag ? 'always' : 'onTagOrDraft' : 'never',
 }).catch(e => {