#STD Command does not work in Linux release

43 messages · Page 1 of 1 (latest)

vocal topaz
nova pendant
#

And is it possible to test with another command what happens, e.g. a basic echo?

vocal topaz
nova pendant
vocal topaz
#

That sounds better, how is that?

nova pendant
vocal topaz
#

Yeah I guess

nova pendant
#

Or perhaps just use debug assertions

vocal topaz
#

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] ?

nova pendant
vocal topaz
#

What is the command for debug production build? npm run tauri build .. ?

nova pendant
#

There's also this in the notes:

You can also run a built app from the terminal, giving you the Rust compiler notes (in case of errors) or your println messages. Browse to the file src-tauri/target/(release|debug)/[app name] and run it in directly in your console or double-click the executable itself in the filesystem (note: the console closes on errors with this method).

#

So I assume you don't have to comment anything out, just do the debug build and launch the app from console

vocal topaz
#

Refused to execute a script for an inline event handler because 'unsafe-inline' does not appear in the script-src directive of the Content Security Policy. in Inspect

nova pendant
vocal topaz
#

No, it works fine

nova pendant
vocal topaz
#

Confirmed npm run tauri dev has no errors

vocal topaz
nova pendant
#

I'd assume devtools console

nova pendant
vocal topaz
#

I just need minimal changes, I'd prefer that

nova pendant
#

I guess do either way but it's easy to forget when you modify the csp etc and can forget to revert later if you want to improve security practices

vocal topaz
#

How can I?

nova pendant
vocal topaz
vocal topaz
vocal topaz
#

So Content-Security-Policy: script-src 'unsafe-inline'; how do I add it?

#

It says http, I'm confused

#

In the tauri.conf.json it goes?

nova pendant
vocal topaz
#
"security": {
      "csp": "default-src: 'self'; media-src: *; Content-Security-Policy: script-src 'unsafe-inline';"
    }

?

nova pendant
#

Don't think you need content-security-policy in front

vocal topaz
#

I test it, brb

nova pendant
#

Imma sleep now but ping me if that doesn't work

vocal topaz
#

Ended up removing inline codes, thanks for the help! I now have a release for Linux

#

How to mark as solved?