XPI-REPACK(1)

πŸ“¦ version 0.54.2, in debian bookworm, ubuntu jammy

πŸ’… XPI-REPACK(1) πŸ’…

okay bestie, welcome to xpi-repack, straight outta the mozilla-devscripts suite. pull up a chair, we're about to get into it πŸŽ€


✨ NAME ✨

xpi-repack β€” repack a xpi file into a tarball πŸ¦‹


🌸 SYNOPSIS 🌸

xpi-repack [options] xpi-file

πŸ’– DESCRIPTION πŸ’–

so, xpi-repack is a little helper tool for packaging XUL extensions. what it does is take the xpi file you hand it and repack it into a proper tarball β€” one that's actually usable as a source tarball for the Debian package. no cap, that's the whole vibe. πŸ‘‘

and the way it's designed? it's built to work with uscan. here's an example for debian/watch, and yes you're gonna want this exact energy:

version=3
ftp://ftp.mozilla.org/pub/mozilla.org/addons/<id>/<package>-([\d\.]+)-.*\.xpi
debian xpi-repack

that's it. that's the whole thing. iykyk πŸ’…


🧚 OPTIONS 🧚

  • -h, --help β€” shows you a brief help message. like, a lil summary. we love a quick recap ✨
  • *-p *package, --package=*package*** β€” this package name is what gets used to name the resulting tarball. if you don't pass it in, it'll just grab the source package name from debian/control` instead. convenient fr fr 🫢
  • -u version, `--upstream-version=version β€” this version gets used for naming the resulting tarball. and no, you can't skip it β€” you have to specify this parameter. it's not optional, bestie 😭
  • *-f *compression, --format=*compression*** β€” tells it which format to use for compressing the resulting tarball. the formats <mint>bz2</mint>, <mint>gz</mint>, and <mint>xz</mint> are supported. if you just... don't pass the parameter at all? then <purple>xz</purple> gets used for "3.0 (quilt)" source packages, and <purple>gz` for every other source package type. the more you know 🌈
  • -v, --verbose β€” prints more information. main character energy for your terminal logs πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Benjamin Drung <bdrung@debian.org> πŸ’œ


okay that's the whole page, you ate that πŸ“ this was xpi-repack from the mozilla-devscripts suite, dated March 2014 β€” go forth and repack something iconic, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from