electron-packager not working
Hey,
after downloading your repo, setting optimalisations to :none and making
boot build-prod
electron-packager target/ MyApp --platform=darwin --arch=x64 --version=0.31.2
open MyApp-darwin-x64/MyApp.app
I'm getting Error: Cannot find module '/main.out/goog/bootstrap/nodejs.js'
and itβs because there is main.js generated which use
require(path.join(path.resolve("."),"app/main.out","goog","bootstrap","nodejs.js"));
to require files. the problem is path.resolve(β.β) evaluates to / for build electron process (https://github.com/clojure/clojurescript/blob/cdaeff298e0f1d410aa5a7b6860232270d287084/src/main/clojure/cljs/closure.clj#L1405).
How you package production app? does it working for you?
Same here
Is there an "elegant" way to apply the fix by @olegakbarov on the generated main.js instead of applying it upstream to clojurescript?
@jaromil when it comes to elegance you can't beat this: boot prod-build && sed -i '' 's/"."/__dirname/g' target/main.js