Coder Social home page Coder Social logo

Generating .crx doesn't works about crx HOT 11 CLOSED

okuryu avatar okuryu commented on August 16, 2024
Generating .crx doesn't works

from crx.

Comments (11)

thom4parisot avatar thom4parisot commented on August 16, 2024

@joscha mentioned he regenerated a new pem key. If you do that, does it work?

PS: your key.pem should not be located in the same folder as your manifest, it should be in the parent folder.

from crx.

okuryu avatar okuryu commented on August 16, 2024

It resolved by regenerate a pem key, Thanks!

from crx.

thom4parisot avatar thom4parisot commented on August 16, 2024

@okuryu thanks for the feedback. I wonder what difference between openssl and node-rsa causes that issue though.

from crx.

okuryu avatar okuryu commented on August 16, 2024

@oncletom @joscha BTW, it seems to changed the extension's ID by regenerating a private pem key. Is there a way to maintains the extension's ID and pem key with using crx module?

from crx.

lepolt avatar lepolt commented on August 16, 2024

I'm actually having an issue using the crx CLI... I get exceptions from other modules it would seem... Here is my structure:
chrome
/ css
/ html
/ image
/ js
/ libs
manifest.json

$ crx pack
path.js:313
throw new TypeError('Arguments to path.resolve must be strings');
^
TypeError: Arguments to path.resolve must be strings
at exports.resolve (path.js:313:15)
at Command.pack (/usr/local/lib/node_modules/crx/bin/crx.js:60:15)
at Command.listener (/usr/local/lib/node_modules/crx/node_modules/commander/index.js:286:8)
at Command.emit (events.js:98:17)
at Command.parseArgs (/usr/local/lib/node_modules/crx/node_modules/commander/index.js:528:12)
at Command.parse (/usr/local/lib/node_modules/crx/node_modules/commander/index.js:414:21)
at Object. (/usr/local/lib/node_modules/crx/bin/crx.js:35:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

Any quick thoughts? I'd like the app to build my key for me as well.

from crx.

cakesmith avatar cakesmith commented on August 16, 2024

It may be that the pem key was originally generated using the Chrome browser and used the pkcs8 header format and when you regenerated the pem key using the crx CLI, you generated it with the pkcs1 format. Please see pull request #32 which fixes this problem.

from crx.

lepolt avatar lepolt commented on August 16, 2024

I haven't actually generated a key yet, so key.pem doesn't exist anywhere.

from crx.

thom4parisot avatar thom4parisot commented on August 16, 2024

try crx pack .. The CLI misses a default for the path.

from crx.

lepolt avatar lepolt commented on August 16, 2024

Tried that, it crashes trying to read key.pem since it doesn't exist yet.

from crx.

lepolt avatar lepolt commented on August 16, 2024

Alright, I see what's going on here... There are a couple assumptions that the CLI is making which is causing the crashes. I'm going to fork, fix, and submit a pull request.

Thanks for your help!

from crx.

thom4parisot avatar thom4parisot commented on August 16, 2024

Thank you @lepoltj and sorry for this annoying situation!

from crx.

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.