#Tauri Build program different vs Tauri Dev

8 messages · Page 1 of 1 (latest)

gentle pollen
#

Hello everyone. I have been doing some development with Tauri recently and encountered some weird behavior. When I used yarn tauri dev the app came out all ok but when I used yarn tauri build and install the application bundle. The app is all sort of messed up, no css or anything.
Plus after finished building it threw this error.

        /Users/runner/work/carpe/carpe/src-tauri/target/release/bundle/macos/carpe.app
        /Users/runner/work/carpe/carpe/src-tauri/target/release/bundle/dmg/carpe_0.5.0_x64.dmg
        /Users/runner/work/carpe/carpe/src-tauri/target/release/bundle/macos/carpe.app.tar.gz (updater)

       Error Invalid byte 95, offset 7.
error Command failed with exit code 1.```
Rerun in --verbose reveal it was  `Error [tauri_cli_node] Invalid byte 95, offset 7.` but not much else.
#

Build on physical macOS Montery and Github Action ubuntu 20.04. Both threw Error Invalid byte 95, offset 7.

gentle pollen
#

Further investigation reveal that autp updater has something to do with this as turning it off gets rid of the Invalid byte error. Still no css in tauri build though.

forest yacht
#

the 2 most common causes are misconfigured CSP or distDir configs. You could make a debug build yarn tauri build --debug which will have the devtools enabled so that you can check the console for any errors

#

Error Invalid byte 95, offset 7
Sounds like the updater is not configured correctly.

gentle pollen
#

Yep, it was the updater. I will try --debug and try to work out why there is no css. Thanks for the help

#

seems like this is the cause @forest yacht