如何以编程方式创建chrome crx文件(最好在Java中)? [英] How to create chrome crx file programmatically (preferably in java)?

查看:144
本文介绍了如何以编程方式创建chrome crx文件(最好在Java中)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以编程方式创建chrome扩展名crx文件(不使用chrome.exe,因为它会打开新的chrome窗口)。那么相同的替代品有哪些呢?我的偏好是Java,但如果可以使用其他语言,也可以。

I want to create chrome extension crx file programatically (not using chrome.exe, because it opens new chrome window). So what are the alternatives for same ? My preference is java, but if its possible in other language then also I am okay.

推荐答案

有很多实用程序可以为此,可以使用多种语言(尽管它们主要是shell /脚本语言)

There is a variety of utilities to do this, in various languages (albeit; they are mostly shell/scripting languages)

我无法发布所有链接,因为我是新的stackoverflow用户-我只能发布1个链接,因此我创建了一个页面,其中列出了所有链接-包括下面我要谈到的一个C语言- http://curetheitch.com/projects/buildcrx/6/

I cannot post the links to all of them, because I am a new stackoverflow user - I can only post 1 link, so I created a page which lists them all - including the one C one I speak about below - http://curetheitch.com/projects/buildcrx/6/

无论如何,我花了几个小时并用C编写了一个版本它运行在Windows或Linux上,因为其他解决方案需要安装脚本语言或外壳程序(例如python,ruby,bash等)和OpenSSL。我编写的实用程序具有静态链接的OpenSSL,因此没有解释器或库要求。

Anyway, I spent a few hours and put together a version in C which runs on Windows or Linux, as the other solutions require installation of a scripting language or shell (i.e. python, ruby, bash, etc.) and OpenSSL. The utility I wrote has OpenSSL statically linked so there are no interpreter or library requirements.

该存储库托管在github上,但是上面的链接列出了我的实用程序和其他人的解决方案。

The repository is hosted on github, but the link above has a list of my utility and other peoples solutions.

Java没有列出任何东西,这是您的偏爱,但希望有帮助!

Nothing listed for Java, which was your preference, but hopefully that helps!

这篇关于如何以编程方式创建chrome crx文件(最好在Java中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆