mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 23:54:13 +08:00
fix(linux): Resolve linux launch issue due to missing require
This commit is contained in:
parent
771b5023c1
commit
54558c5e5b
1 changed files with 1 additions and 0 deletions
|
@ -121,6 +121,7 @@ class DatabaseManager
|
|||
dblite.bin = "#{vendor}/sqlite3-win32.exe"
|
||||
resolve(dblite)
|
||||
else if process.platform is 'linux'
|
||||
{exec} = require 'child_process'
|
||||
exec "uname -a", (err, stdout, stderr) ->
|
||||
arch = if stdout.toString().indexOf('x86_64') is -1 then "32" else "64"
|
||||
dblite.bin = "#{vendor}/sqlite3-linux-#{arch}"
|
||||
|
|
Loading…
Reference in a new issue