Giter Site home page Giter Site logo

lidel / firefox-addons-add-update-version Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mi-g/firefox-addons-add-update-version

0.0 1.0 1.0 10 KB

A command line tool to add a Firefox add-on version to the update.json manifest

License: Mozilla Public License 2.0

JavaScript 100.00%

firefox-addons-add-update-version's Introduction

Description

Given a previously signed add-on XPI file, this script creates or updates the update.json manifest required for automatic add-on updates.

Install

npm install -g firefox-addons-add-update-version

Usage

faauv [options] <xpi file path>

Options

  • --update-in <update.json file path>: path to original update.json manifest. If not specified, a new manifest is assumed
  • --update-out <update.json file path>: path to update.json manifest to be created
  • --update <update.json file path>: shortcut to specify both --update-in and --update-out for the same path
  • --update-link <url where to download xpi>: update link to download new add-on version

Notes

When using the --update-link option, you can use the placeholder @version@ to be replaced by the new add-on version string.

If former versions already exist in the original update.json, all the extra parameters (e.g {"applications":{"gecko":{"strict-minimum-version":"..."}}}) from the latest version are re-used in the new entry.

This is also the case for the update_link property, if not specified as command line parameter, with the version string being replaced in the url. For instance if a previous version 1.0.1 had update_link https://mysite.com/download?v=1.0.1 and you add version 1.0.2 without specifying the --update-link option, the new entry will automatically set update_link to https://mysite.com/download?v=1.0.2.

firefox-addons-add-update-version's People

Contributors

mi-g avatar

Watchers

 avatar

Forkers

kee-org

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.