#Split build and bundle steps

4 messages · Page 1 of 1 (latest)

next veldt
#

Does it possible to run a command just to build tauri app,
and in separate command run tauri bundle?
Because after the build I need to do few things.
Maybe the right thing to do is beforeBundleCommand?

Also, should I use cargo tauri build in github action? (it takes long time to compile it everytime) and I didn't found a way to cache tauri-cli

#

Also it doesn't bundle Webview2loader.dll in rust gnu on windows
And I'm not sure where to take it from

$ find . -name WebView2Loader.dll
./target/release/build/webview2-com-sys-a8089a23038ba812/out/arm64/WebView2Loader.dll
./target/release/build/webview2-com-sys-a8089a23038ba812/out/x64/WebView2Loader.dll
./target/release/build/webview2-com-sys-a8089a23038ba812/out/x86/WebView2Loader.dll
zenith steppe
#

Maybe the right thing to do is beforeBundleCommand?
That's the idea, yes. Though i'd love to have something like a tauri bundle command.
Also, should I use cargo tauri build in github action?
"should"? That's for you to decide. I'd probably just do npm i -g @tauri-apps/cli myself.
Also it doesn't bundle Webview2loader.dll in rust gnu on windows
And I'm not sure where to take it from
Yup, tauri doesn't directly/officially support the gnu toolchain so you're a bit on your own. Just take the one for your arch from the list you posted and include it as a resource

next veldt