Giter Site home page Giter Site logo

palant / autoinstaller Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 26.0 66 KB

DEPRECATED: Firefox/SeaMonkey/Thunderbird extension that makes extension development easier: it allows automatically adding or updating browser extensions, e.g. via command line tools.

License: Mozilla Public License 2.0

JavaScript 45.96% Python 54.04%

autoinstaller's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autoinstaller's Issues

Fennec 53+

The compatibility of this very useful add-on is locked at version 52 for Firefox for Android, while all other platforms are not.
Is there a reason for that, or can you just update that number?

posting a file from node request module does not seem to work

I would think that this nodeJS script, fs.createReadStream("foo.xpi").pipe(require("request").post("http://localhost:8888")) should work, but I'm getting this error:

addons.xpi WARN Download of install-shortener:36 failed: [Exception... "Component returned failure code: 0x8052000b (NS_ERROR_FILE_CORRUPTED) [nsIZipReader.open]" nsresult: "0x8052000b (NS_ERROR_FILE_CORRUPTED)" location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm :: AI_loadManifest :: line 5267" data: no] Stack trace: AI_loadManifest()@resource://gre/modules/addons/XPIProvider.jsm:5267 < AI_onStopRequest()@resource://gre/modules/addons/XPIProvider.jsm:5540 < file:unknown

wget with the same file does work.

My Addon isn't installed in Firefox

After runing this at the command line:
wget --post-file=RE.xpi http://localhost:8888/

I got the following:
alhost:8888/
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2015-01-25 00:31:35-- http://localhost:8888/
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:8888... connected.
HTTP request sent, awaiting response... 500 No Content
2015-01-25 00:31:35 ERROR 500: No Content.

As I understand the '500 No Content' message is normal but my addon isn't installed in Firefox
I can install the xpi in Firefox fine and it shows up.

Can anyone help?

Update: I've downloaded the Ninja2 module that I didn't have before. I then went to download easy_install or setuptools but the instructions for dowloading / installing them redirects to each other. extremely comfusing and frustrating. I finally just uninstalled extension-auto installer being fedup and no help on this here.

[Question] How make loop script on Windows 7

Hello Wladimir,

I just installed the sdk mozilla addon and your addon "autoinstaller" which I hope will make me save some manipulation.

My problem is this, I am currently stuck on step:

Developing run without cfx
https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Getting_started

The trouble is that the .bat script that I am trying to create windows 7 to perform automatically sends it does not work. The msdos console will automatically close after the commades 'activate' or 'cfx xpi' and not exucute following commands.

(bat file is in bin/ folder)

activate
cd my-addon
:loop
cfx xpi
wget --post-file=my-addon.xpi http://localhost:8888/
timeout 5
goto loop

Can you tell me how I should do for it to work under msdos.

Thank you for your help and your time.

See you soon
Reek

PS: I also wanted to congratulate you for the excellent addon Adblock Plus and your numerous contributions to Mozilla.

Getting error after posting addon that I don't get on start.

jpm post together with autoinstaller worked fine before, but now I'm getting a weird error, supposed to be from my addon, but only after posting, not after restarting. I'm trying to figure out why this error pops up after post and not otherwise. Is it autoinstaller related or .. ?

Error:

aId is undefined

resource:///modules/CustomizableUI.jsm

"CustomizableUIInternal.isSpecialWidget
resource:///modules/CustomizableUI.jsm:1199:5CustomizableUIInternal.getWidgetProvider
resource:///modules/CustomizableUI.jsm:820:9CustomizableUIInternal.wrapWidget
resource:///modules/CustomizableUI.jsm:433:20this.CustomizableUI.createWidget
resource:///modules/CustomizableUI.jsm:3180:1create
resource://gre/modules/commonjs/sdk/ui/button/view.js:122:1BxTagButton<.initialize
resource://bookmarkstagsmix-at-e-motiv-dot-net/lib/BxTagButton.js:133:6constructor
resource://gre/modules/commonjs/sdk/core/heritage.js:146:23destroyAndRebuildTags/<
resource://bookmarkstagsmix-at-e-motiv-dot-net/index.js:34:15destroyAndRebuildTags
resource://bookmarkstagsmix-at-e-motiv-dot-net/index.js:32:2
resource://bookmarkstagsmix-at-e-motiv-dot-net/index.js:85:1run
resource://gre/modules/commonjs/sdk/addon/runner.js:145:19startup/</<
resource://gre/modules/commonjs/sdk/addon/runner.js:86:7Handler.prototype.process
resource://gre/modules/Promise-backend.js:867:23this.PromiseWalker.walkerLoop
resource://gre/modules/Promise-backend.js:746:7this.PromiseWalker.scheduleWalkerLoop/<
resource://gre/modules/Promise-backend.js:688:37Promise*this.PromiseWalker.scheduleWalkerLoop
resource://gre/modules/Promise-backend.js:688:5this.PromiseWalker.schedulePromise
resource://gre/modules/Promise-backend.js:709:7this.PromiseWalker.completePromise
resource://gre/modules/Promise-backend.js:671:7handler
resource://gre/modules/commonjs/sdk/addon/window.js:56:3"

Cannot assign requested address.

This sounds like a mistake on my part (firewall/port taken), but this is a little trickier (or so I hope).

I installed autoinstaller from 04/29/16 and it is running:

lsof -i :8888
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
firefox 30120   vh   36u  IPv4 8008134      0t0  TCP localhost,:8888 (LISTEN)

But I can not send my extension (I tested wget and curl).

wget --post-file=extension.xpi http://localhost:8888/
--2016-04-29 17:05:45--  http://localhost:8888/
Resolving localhost (localhost)... ::1
Connecting to localhost (localhost)|::1|:8888... failed: Cannot assign requested address.
Retrying.

--2016-04-29 17:05:46--  (try: 2)  http://localhost:8888/
Connecting to localhost (localhost)|::1|:8888... failed: Cannot assign requested address.
Retrying.

I have no firewall rules that filter, only ACCEPT

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
DOCKER     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain DOCKER (1 references)
target     prot opt source               destination 

I can visit 127.0.0.1:8888 but the page is empty.
My firefox version is: Mozilla Firefox 46.0
How do I see debugging output from autoinstaller?

Installation silently fails for unsigned addons in Firefox >=43

When posting an unsigned XPI to Auto-Installer in Firefox 43 with xpinstall.signatures.required set to true (the default), I only get a 309: No Content response (the same response I get when the installation succeeds), but the extension doesn't get installed. After setting xpinstall.signatures.required to false, it works as usual.

I'm not sure how Auto-Installer should deal with xpinstall.signatures.required, but I think it should deal with it somehow, if only by mentioning it in the README.

Does this work with WebExtensions?

I have a WebExtension that installs correctly when I go to about:debugging and load it manually. But when I try to install it with this extension the installation fails (error code - 3). Does this support WebExtensions? It would be a really convenient way to test extensions on my phone.

Very slow in Firefox nightly build

I'm using Firefox Nightly 44.0a1 (2015-10-14) because I am trying out the new ECMAScript class support. It's working fine, but Extension Auto-Installer is running very slowly, pretty much making Firefox stall completely for 10 seconds, every time I save a watched file. After this happens a few times, the browser even says that Extension Auto-Installer is making Firefox run slowly and suggests disabling it.

Is this a known issue and if so, what can I do about it?

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.