-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (24 loc) · 930 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
UUID=gestureImprovements@gestures
EXTENSIONDIR=build/extension
BUILDIR=build
ZIPPATH=${PWD}/${BUILDIR}/${UUID}.shell-extension.zip
DESTDIR=${HOME}/.local/share/gnome-shell/extensions/${UUID}
UPDATE_CMD = gnome-extensions install -f ${ZIPPATH}
ifdef FLATPAK_ID
UPDATE_CMD = flatpak-spawn --host gnome-extensions install -f ${ZIPPATH}
endif
pack:
node ${BUILDIR}/scripts/updateMetadata.js \
--descriptionREADMEFile=extension_page.md \
--inFile=metadata.json --outFile=${EXTENSIONDIR}/metadata.json
cp -r extension/assets/ extension/stylesheet.css extension/ui extension/schemas $(EXTENSIONDIR)
glib-compile-schemas --strict ${EXTENSIONDIR}/schemas
rm -f ${ZIPPATH}
cd ${EXTENSIONDIR} && zip -r ${ZIPPATH} .
update:
${UPDATE_CMD}
build-tests: build/tests/prefs.js
node ${BUILDIR}/scripts/transpile.js --dir ${BUILDIR}/tests --type app
@npx eslint build/tests --fix
test-ui: build-tests
gjs -m build/tests/prefs.js