tridactyl/scripts/get_id_from_xpi.sh

5 lines
126 B
Bash
Raw Normal View History

#!/usr/bin/env bash
temp=$(mktemp -d)
2019-09-23 07:33:13 +01:00
unzip -qq "$1" -d "$temp"
jq '.applications.gecko.id' "$temp"/manifest.json | tr -d '"'