INSTALL-XPI(1)
π install-xpi β bestie edition π
ok so this is install-xpi, part of the mozilla-devscripts suite, and it's literally the girlboss that takes your .xpi file and tucks it all cozy into a Debian package. no cap. π
β¨ NAME β¨
install-xpi β installs a xpi file into a Debian package π«Ά
πΈ SYNOPSIS πΈ
install-xpi [options] xpi-file
π¦ DESCRIPTION π¦
so install-xpi is a helper tool for packaging XUL extensions. it takes the xpi file you hand it, installs it into the correct directory, and creates all the required links based on the data chillin' in the install.rdf file. she also fixes up the file permissions for you β unless you pass --preserve-permissions, in which case she minds her own business. π
and okay, this part is kind of iconic: install-xpi will create a configuration file in /etc if the XUL extension brings one or more preferences files in defaults/preferences. that config file is lowkey minimal β it only contains a description of where to find the overridable preferences. but wait, there's more: if debian/package.js exists, that gets used as the configuration file instead. π
also the placeholder @INSTALLDIR@ gets replaced by the actual installation directory. (yes, the original says "is replaces" and honestly? we respect the typo era. but it means replaced, bestie. π)
if you don't want a system configuration file at all, just hit it with --disable-system-prefs. bye bye /etc file. π§
π OPTIONS π
--disable-system-prefsβ do NOT create a system preference file in/etc. we're being independent today. π«-xfile,--exclude=file β the specified file from the xpi file will not be installed. you can use this parameter several times (stack 'em up, bestie, no limit). π-h,--helpβ displays a brief help message. short, sweet, slay. β¨-idirectory,--install-dir=directory β the xpi file will be installed in the specified directory. directory must be an absolute path. use this parameter with care, fr fr β she said what she said. β οΈ-ldirectory,--link=directory β an additional link from the directory to the installation directory of the extension will be created. you can use this parameter several times too. π-ppackage,--package=package β the xpi file will be installed in the specified binary package. if you don't provide this parameter, the first binary package listed indebian/controlwill be used. she'll pick for you, no stress. π--preserve-permissionsβ the permissions of the files in the xpi file will not be modified. if this parameter is not provided, install-xpi will try to correct the permissions of the files to644(and files that start with a shebang get corrected to755instead, because obviously π).-r,--remove-license-filesβ files with names likecopying,licence, orlicensewill not be installed. gone, reduced to atoms. π-v,--verboseβ print more information. she gets chatty. π£οΈ
π AUTHOR π
Benjamin Drung <bdrung@debian.org> β thank you for your service, king π«‘
π reminder bestie: every option above is exactly as written, so don't go freestyling the flags. copy them character for character. periodt.
okay that's the whole page, mwah π this was install-xpi from the mozilla-devscripts suite, dated January 2010. vintage but make it iconic. bye bestie, go package something cute! πβ¨π¦
π¦ where this page comes from
- debian bookworm: mozilla-devscripts 0.54.2+nmu1 Β· ISC
- ubuntu jammy: mozilla-devscripts 0.54.2 Β· ISC
- Copyright (c) 2010-2011 Benjamin Drung <bdrung@debian.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms