initial commit

This commit is contained in:
2025-09-17 23:05:25 -04:00
commit ee78eef527
17 changed files with 610 additions and 0 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
MOZ_NATIVE=$(HOME)/.mozilla/native-messaging-hosts
release: xpi
xpi:
zip -r misctils.xpi *.js manifest.json icons/ startpage/
startpage:
./genfs.sh
install:
mkdir -p $(MOZ_NATIVE)
cp nativemsg/bg.py $(MOZ_NATIVE)
# make the home directory work for all users
sed "s@HOME@$(HOME)@" nativemsg/bg_app.json > $(MOZ_NATIVE)/bg_app.json
chmod +x $(MOZ_NATIVE)/bg.py
uninstall:
rm $(MOZ_NATIVE)/bg_app.json $(MOZ_NATIVE)/bg.py
clean:
rm misctils.xpi
.PHONY: startpage