GithubHelp home page GithubHelp logo

Comments (10)

sindresorhus avatar sindresorhus commented on May 21, 2024

You need to run $ npm run build-linux.

from caprine.

vikas-parashar avatar vikas-parashar commented on May 21, 2024

Tried. Still not working. http://pastebin.com/7ezqP7hW

from caprine.

sindresorhus avatar sindresorhus commented on May 21, 2024

Did you run $ npm install first?

from caprine.

vikas-parashar avatar vikas-parashar commented on May 21, 2024

yeah, npm install followed by npm start.

from caprine.

sindresorhus avatar sindresorhus commented on May 21, 2024

Not really sure where it's failing. Try installing electron-packager globally and try each command separately.

$ electron-packager . Caprine --overwrite --out=dist --ignore='^/dist$' --ignore='^/media/(?!Icon.png$).*' --prune --platform=linux --arch=x64 --app-bundle-id=com.sindresorhus.caprine --app-version=0.1.2 --version=0.33.3
cd dist/Caprine-linux-x64/
zip -ryq9 ../Caprine-linux-0.1.2.zip *

from caprine.

vikas-parashar avatar vikas-parashar commented on May 21, 2024

Since first error on building was Command failed: /bin/sh -c npm prune --production. I tried by removing --prune from the command and it worked.

from caprine.

vikas-parashar avatar vikas-parashar commented on May 21, 2024

I will try this on another system and check if error reproduces.

from caprine.

vikas-parashar avatar vikas-parashar commented on May 21, 2024

I tried by adding npm prune --production like this
"build-linux": "npm prune --production && electron-packager . $npm_package_productName --overwrite --out=dist --ignore='^/dist$' --ignore='^/media/(?!Icon.png$).*' --prune --platform=linux --arch=x64 --app-bundle-id=com.sindresorhus.caprine --app-version=$npm_package_version --version=$npm_package_electronVersion && cd dist/Caprine-linux-x64/ && zip -ryq9 ../Caprine-linux-\"$npm_package_version\".zip *" and it worked.

I am not sure if it can be considered as temporary fix untill electron-packager resolves the issue.

from caprine.

sindresorhus avatar sindresorhus commented on May 21, 2024

I don't want to end up with a bunch of temporary workarounds. I'm the only one that needs to build anyways. If for some weird reason you need this just work around it locally.

from caprine.

vikas-parashar avatar vikas-parashar commented on May 21, 2024

I suggested this fix, because it's same as what --prune flag do(at least that what I thought) and for other devs who might want to builld for some reason but I might be wrong since you know better and I'm just a learner so I'll try not to fix things again in these ways. Thanks!!

from caprine.

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.