#!/bin/bash

sed "s/\"version.*/\"version\": \"$(date +%s)\",/" -i manifest.json 
zip -r0 kbd.xpi manifest.json kbd.js options.html options.js icons/ 
command -v kdeconnect-cli && kdeconnect-cli -n Pixel --share kbd.xpi
# skip this if with Termux
