fix: remove inference-worker from release-mobile

This commit is contained in:
Tienson Qin
2025-09-02 20:26:34 +08:00
parent 2aee658547
commit ef5b668c55
2 changed files with 5 additions and 13 deletions

View File

@@ -83,8 +83,8 @@
"gulp:mobile-watch": "gulp watchMobile",
"css:mobile-build": "postcss tailwind.mobile.css -o static/mobile/css/style.css --verbose --env production",
"css:mobile-watch": "cross-env TAILWIND_MODE=watch postcss tailwind.mobile.css -o static/mobile/css/style.css --verbose --watch",
"cljs:mobile-watch": "clojure -M:cljs watch mobile db-worker inference-worker --config-merge \"{:output-dir \\\"./static/mobile/js\\\" :asset-path \\/static/mobile/js\\\" :release {:asset-path \\\"http://localhost\\\"}}\"",
"cljs:release-mobile": "clojure -M:cljs release mobile db-worker inference-worker --config-merge \"{:output-dir \\\"./static/mobile/js\\\" :asset-path \\\"/static/mobile/js\\\" :release {:asset-path \\\"http://localhost\\\"}}\"",
"cljs:mobile-watch": "clojure -M:cljs watch mobile db-worker --config-merge \"{:output-dir \\\"./static/mobile/js\\\" :asset-path \\/static/mobile/js\\\" :release {:asset-path \\\"http://localhost\\\"}}\"",
"cljs:release-mobile": "clojure -M:cljs release mobile db-worker --config-merge \"{:output-dir \\\"./static/mobile/js\\\" :asset-path \\\"/static/mobile/js\\\" :release {:asset-path \\\"http://localhost\\\"}}\"",
"cljs:dev-watch": "clojure -M:cljs watch app db-worker inference-worker electron mobile",
"cljs:app-watch": "clojure -M:cljs watch app db-worker inference-worker",
"cljs:electron-watch": "clojure -M:cljs watch app db-worker inference-worker electron --config-merge \"{:asset-path \\\"./js\\\"}\"",

View File

@@ -116,12 +116,7 @@
shadow.remote.runtime.cljs.browser]}}
:mobile {:target :browser
:module-loader true
:js-options {:js-provider :external
:external-index "target/mobile.js"
:external-index-format :esm
:entry-keys ["module" "browser" "main"]
:export-conditions ["module" "import", "browser" "require" "default"]
:ignore-asset-requires true
:js-options {:ignore-asset-requires true
:resolve {"react" {:target :global
:global "React"}
"react-dom" {:target :global
@@ -149,15 +144,12 @@
frontend.config/ENABLE-FILE-SYNC-PRODUCTION #shadow/env ["ENABLE_FILE_SYNC_PRODUCTION" :as :bool :default true]
frontend.config/ENABLE-RTC-SYNC-PRODUCTION #shadow/env ["ENABLE_RTC_SYNC_PRODUCTION" :as :bool :default true]}
;; NOTE: electron, browser/mobile-app use different asset-paths.
;; For browser/mobile-app devs, assets are located in /static/js(via HTTP root).
;; For electron devs, assets are located in ./js(via relative path).
;; :dev {:asset-path "./js"}
:devtools {:before-load mobile.core/stop! ;; before live-reloading any code call this function
:after-load mobile.core/render! ;; after live-reloading finishes call this function
:watch-path "/static/mobile"
:preloads [devtools.preload
shadow.remote.runtime.cljs.browser]}}
shadow.remote.runtime.cljs.browser]
:loader-mode :eval}}
:electron {:target :node-script
:output-to "static/electron.js"
:main electron.core/main