Compiling Openwrt Github Package to single ipk

Update to 19.07.0 and you can install your package from the official repo.

http://downloads.openwrt.org/releases/19.07.0/targets/ramips/mt7621/openwrt-19.07.0-ramips-mt7621-xiaomi_mir3g-squashfs-sysupgrade.bin

You can do it like the following from a ssh shell:

cd /tmp
wget http://downloads.openwrt.org/releases/19.07.0/targets/ramips/mt7621/openwrt-19.07.0-ramips-mt7621-xiaomi_mir3g-squashfs-sysupgrade.bin
sysupgrade openwrt-19.07.0-ramips-mt7621-xiaomi_mir3g-squashfs-sysupgrade.bin

I´m assuming you are using the first version of MiR3G and not MiR3GV2 as the new version isn´t supported on 18.06.