Skip to content

Commit

Permalink
fix: production release
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Apr 10, 2021
1 parent eacbeac commit bda01b6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
6 changes: 6 additions & 0 deletions externs.js
Expand Up @@ -58,6 +58,12 @@ dummy.concat = function() {};
dummy.diff_main = function() {};
dummy.patch_make = function() {};
dummy.patch_apply = function() {};
dummy.prepare = function() {};
dummy.run = function() {};
dummy.all = function() {};
dummy.transaction = function() {};
dummy.getPath = function() {};


/**
* @typedef {{
Expand Down
8 changes: 7 additions & 1 deletion shadow-cljs.edn
Expand Up @@ -44,7 +44,13 @@
:main electron.core/main
:devtools
{:before-load electron.core/stop
:after-load electron.core/start}}
:after-load electron.core/start}
:compiler-options
{:infer-externs :auto
:source-map true
:externs ["datascript/externs.js"
"externs.js"]
:warnings {:fn-deprecated false}}}

:test
{:target :node-test
Expand Down
7 changes: 4 additions & 3 deletions src/electron/electron/core.cljs
Expand Up @@ -49,9 +49,10 @@

(defn setup-updater! [^js win]
;; manual/auto updater
(init-updater {:repo "logseq/logseq"
:logger logger
:win win}))
(when-not linux?
(init-updater {:repo "logseq/logseq"
:logger logger
:win win})))

(defn setup-interceptor! []
(.registerFileProtocol
Expand Down

0 comments on commit bda01b6

Please sign in to comment.