tridactyl/scripts/get_id_from_xpi.sh
2019-09-23 07:33:13 +01:00

4 lines
126 B
Bash
Executable file

#!/usr/bin/env bash
temp=$(mktemp -d)
unzip -qq "$1" -d "$temp"
jq '.applications.gecko.id' "$temp"/manifest.json | tr -d '"'