Open Dosojin1 opened 1 year ago
I'm getting this error inside the console of the browser:
Sorry for not adding any documentation about this! :sweat_smile:
Basically, you need to add some publication on the directory specified by the tauri; Since I didn't managed to add multilanguage publications neven different types of publication currently, you will need to download Brazilian Portuguese publications and add them to the application data folder, located in your home directory.
On linux, it is:
/home/{your user}/.local/share/open-witness-library/publications/T/bk/{the pub you downloaded}
You will probably need to create the publications/T/bk
path. Remembering that you need to extract the .jwpub file there, and the contents
to a folder named content
inside the pub folder.
The final setup will look something like this:
If it not works, wait a while. I'm targeting to add some option to add the publications soon :)
Hi, Thanks for you answer!
Only one problem, I'm using windows 😂
It seems you need to use %appdata%
so.
I didn't get it if you installed tauri correctly, based on your error log.
If not, you need to follow tauri setup instructions:
cargo install tauri-cli # If you already installed cargo
cargo tauri dev # run this command on repo folder
The directory structure will be the same, I think, will look like this: C:\Users\{your user}\AppData\Roaming\open-witness-library\publications\T\bk\{pubs}\...
Works perfect now! I started this program with trunk serve
With cargo
it works perfect. ♥
Location is: C:\Users\{USERNAME}\AppData\Local\open-witness-library\publications\T\bk\{pubs}\...
Hi @orangethewell,
I am testing this on Linux.
I got this error running cargo tauri dev
:
Error
tauri.conf.jsonerror on
tauri > security: Additional properties are not allowed ('assetProtocol' was unexpected)
When running it with trunk serve
, I only see "update list" button in the browser (the same as @Dosojin1's)
Disclaimer: I copied some jwpub files from /home/{your user}/.local/share/open-witness-library/publications/T/bk/
following your instructions to only keep the manifest.json outside the content directory.
Thanks in advance for your guidance.
@deldesir
I could let it work with cargo tauri dev
by removing some config in tauri.conf.json
.
Navigate to src-tauri\tauri.conf.json
And replace there
"security": {
"csp": null,
"assetProtocol": {
"enable": true,
"scope": ["$DATA/**", "$HOME/**"]
}
},
with
"security": {
"csp": null
},
Then cargo tauri dev
should work properly
Thanks @Dosojin1. Now the build process is running. Will update once it's done. UPDATE: The build failed due to some missing dependencies like libsoup-3.0.0, javascriptcoregtk-4.1... I am installing them, hopefully the build will succeed.
The build passed. I applied some fixes along the way with cargo fix
. All the publications are detected and I can see their titles in the terminal after clicking on update list, in the app window. The problem is once I click on "update list", the app crashes.
The error:
thread 'main' panicked at 'called
Option::unwrap()on a
Nonevalue', src-tauri/src/jwpub/manager.rs:141:123
Do you guys have an idea how to fix it?
You probably downloaded a coverless publication. Since I didn't implement a fallback image, when the manifest doesn't have the filepath for cover, it panics.
@Dosojin1 and @deldesir, I forgot to say that you have to install the alpha version of tauri, 2.0.0.alpha.10
, and with this the alpha version of tauri-cli
(used to run cargo tauri dev
)
Also, I don't recomend using trunk serve
, since the app was built to run with tauri, that is the responsible for delivering filesystem archives (basically the role function of the app)
Hi brother,
This project looks great. But I'm stumble on 1 problem. I couldn't not manage to let it work properly.
When I startup the project I only see this (see picture below), and when click on it, nothing happens. I'm missing something? Or did I do something wrong?
Could you help me?