This line above invokes brew on a hard-coded path that is default installation directory only for macs with Intel CPUs. the code should be modified to make this configurable and preferably default to the default installation directory respective to the mac's CPU
https://github.com/Hammerspoon/Spoons/blob/70341ddc6ffeebc74f8264d9b2c52da0ee29060b/Source/BrewInfo.spoon/init.lua#L98
This line above invokes brew on a hard-coded path that is default installation directory only for macs with Intel CPUs. the code should be modified to make this configurable and preferably default to the default installation directory respective to the mac's CPU