Layendan / Layendanimator

Anime Viewing app for Desktop
GNU General Public License v3.0
96 stars 5 forks source link

Linux build fixable, maybe? #37

Open fang64 opened 6 months ago

fang64 commented 6 months ago

Is your feature request related to a problem? Please describe. Linux builds not being provided

Describe the solution you'd like I did manage to get Ubuntu 22.04 to build the deb and appimage portion in yarn on a native Ubuntu 22.04 machine.

Describe alternatives you've considered None

Additional context I'll attach some logs and commands I ran in my container to get the build to happen. yarn-build.log

These are the series of commands I ran to get the build process to work, albeit something is wrong since it's not loading any content.

apt update
apt install sudo vim -y # Optional for working in live environment
apt upgrade
apt install libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev git libxcb-shape0 libxcb-shape0-dev libxcb-xfixes0-dev # seems the libxcb xfixes0 and shape0 libraries were missing
# setup rust
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh 
. "$HOME/.cargo/env"
rustup update
# setup node 18 LTS
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
nvm install 18
node -v # should print `v18.20.3`
# verifies the right NPM version is in the environment
npm -v # should print `10.7.0`
# jump to $HOME
cd
# pull repo down
git clone https://github.com/Layendan/Layendanimator.git
cd Layendanimator/
corepack enable
# install yarn depends
yarn 
# build the binaries from project
yarn build

Another issue I noticed though is nothing seems to be working within the application, I can use the menus but nothing seems to be scraping or loading into the UI Screenshot from 2024-05-22 14-19-20

I did try and add devtools to the Cargo.toml and run the yarn build --debug but that resulted in no developer tools appearing from Ctrl + Shift + i so I wasn't sure how to check what is going on in the application.

Layendan commented 6 months ago

Hi!

Yeah my server hosting the scraper shut down, so the app currently doesn't work. I don't want to get another free trial so I'm trying to make the scraper client side. Currently having cors errors so it will probably take a few more days to figure out and fix.

The issue I had with the Linux build was that opacity had issues and the player wasn't working. I'll try to see if those are fixed after I fix the scraper.

Layendan commented 6 months ago

For the dev tools, the --debug arg should add it to the build version of the app, idk why it doesn't. You can also use yarn dev which updates changes to the ui in real time and adds the dev tools.

Try maybe yarn tauri build --debug since yarn build might not be passing the argument.

You can also change the cargo.toml file and add this to permanently add the dev tools to the application. [dependencies] tauri = { version = "...", features = ["...", "devtools"] }

You can find more information here if you're interested in learning. https://tauri.app/v1/guides/debugging/application/