Giter Site home page Giter Site logo

Comments (21)

digimezzo avatar digimezzo commented on August 28, 2024 10

I don't yet know why the rebuild sqlite command it failing. I'll look into it. As for the collection remaining empty, and some screens not working: that is normal πŸ™‚. Dopamine 3 is in early development and does nothing yet. Well, the settings screens are operational, and audio files are indeed and album art is downloaded from the internet. But the player does not display the collection yet, and cannot play music. That is will gradually be added in the next few weeks.

from dopamine.

digimezzo avatar digimezzo commented on August 28, 2024 2

@TragicLifeHu I'll update the build instructions this week. I've reopened the issue to keep track of it.

from dopamine.

digimezzo avatar digimezzo commented on August 28, 2024 1

@Cyberdroid1 Please try without running npm audit fix --force
This command is dangerous, because it updates dependencies of dependencies. This usually causes a massive amount of problems.

from dopamine.

digimezzo avatar digimezzo commented on August 28, 2024 1

Please do'nt try to fix these and read this pinned issue: #68
The pinned issue contains an article that might clear things up: https://www.voitanos.io/blog/don-t-be-alarmed-by-vulnerabilities-after-running-npm-install/

from dopamine.

digimezzo avatar digimezzo commented on August 28, 2024 1

It seems that the rebuild-sqlite command also rebuilt sharp. This broke the sharp module. I don't know why it breaks it though. Using native modules in Electron is quite complicated. However, it was never my intent to rebuild sharp with the rebuild-sqlite command, so I've now updated that command in package.json, so that it only builds better-sqlite3. You should be able to fix your sharp issue by doing this:

  • Get the latest commit in this repository
  • Delete the Sharp directory from node_modules
  • Run npm install to reinstall sharp
  • Run npm start again to start the application

Next time you run npm run rebuild-sqlite should not break sharp again. I'll try to further understand why rebuilding sharp breaks it though.

from dopamine.

TragicLifeHu avatar TragicLifeHu commented on August 28, 2024 1

It's not possible to build version 3 following the instruction above on Windows now. (And on my openSUSE Leap 15.2 I didn't success, too)

Microsoft had shut down everything about Visual Studio 2015, including Microsoft Build Tools 2015. Installing windows-build-tools vs2015 will result in vs2017 to be installed.
More info here: felixrieseberg/windows-build-tools#249

As for @Cyberdroid1 's issue mentioned above, I found this: https://www.programmersought.com/article/19371828050/
image

I don't know many about Node.js, so I just try building for fun. Sorry for troubling

from dopamine.

OnlyCS avatar OnlyCS commented on August 28, 2024

First Install NodeJS and NPM.

Linux Debian/Debian-Based:

  1. Run:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt install -y nodejs

Windows:

  1. Get the .exe from NodeJS Downoads
  2. Open CMD Prompt and Run:
npm install --global --production windows-build-tools --vs2015

Mac:

  1. Get the PKG installer from NodeJS Downloads

Or use Homebrew For Mac:

  1. Install XCode from App Store

  2. Open Terminal and Run:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install node

Building

  1. If you are on Linux, Clone Dopamine with Git Clone (See readme) or with windows and mac, download and extract the zip.
    Then go into the Dopamine folder and open a Terminal/CMD Prompt window there.
    Now run:
npm install
npm run rebuild-sqlite
npm start                       # Start the program 
npm run electron:windows        # Build for Windows
npm run electron:linux          # Build for Linux
npm run electron:mac            # Build for Mac

Building for Linux gives a .AppImage, .snap, .deb, and a .rpm.
.AppImage, .snap, and .deb gives a blank screen tho. Didn't Try RPM.

from dopamine.

Socketlike avatar Socketlike commented on August 28, 2024

from dopamine.

prakharb5 avatar prakharb5 commented on August 28, 2024

Trying to run the command npm run rebuild-sqlite fails on my Win10 PC.

image

Please help me. I followed everything else perfectly.

from dopamine.

prakharb5 avatar prakharb5 commented on August 28, 2024

Trying to run npm start gives more error.

image

Is it because I ran npm audit fix --force ?

from dopamine.

prakharb5 avatar prakharb5 commented on August 28, 2024

But, the command npm run rebuild-sqlite always fails. What about that?

from dopamine.

digimezzo avatar digimezzo commented on August 28, 2024

Have you installed the Windows build tools?

from dopamine.

prakharb5 avatar prakharb5 commented on August 28, 2024

Yes. See the image above I have attached.

from dopamine.

prakharb5 avatar prakharb5 commented on August 28, 2024

I started again from scratch.

image

Running npm install keeps giving vulnerability errors.

from dopamine.

prakharb5 avatar prakharb5 commented on August 28, 2024

After running npm audit fix , I still get some vulnerability errors. How do I fix that?

from dopamine.

prakharb5 avatar prakharb5 commented on August 28, 2024

Ok, so I tried again, without fixing anything. It gets rebuild. And it opens on npm start. When the window opens, it is all blank. Nothing in it. The Inspect menu on the right says something that sharp module is causing problem/not found. How do I fix that?

from dopamine.

digimezzo avatar digimezzo commented on August 28, 2024

Which version of sharp is listed when you perform this command?

npm list sharp

from dopamine.

prakharb5 avatar prakharb5 commented on August 28, 2024

0.25.4

image

from dopamine.

prakharb5 avatar prakharb5 commented on August 28, 2024

Why does the command npm run rebuild-sqlite looks for a specific file location? It should run in its present repository, right? I keep getting error for invalid file location. Though I can change the command for the same, but still, can this not be fixed?

image

from dopamine.

prakharb5 avatar prakharb5 commented on August 28, 2024

Thanks, the app builds correctly now. The other problem that I face is this --

image

The library stays blank. The Manage collections button does not do anything. Please help me with this.

from dopamine.

digimezzo avatar digimezzo commented on August 28, 2024

@TragicLifeHu With some delay, I've updated the build instructions. I tested the instructions on 2 clean Windows 10 PC's. The trick is to install Node.js including the Tools for Native Modules.

from dopamine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.