Nadeflore / tetriband

A tetris like watchface game for the mi band 7
GNU General Public License v3.0
20 stars 1 forks source link

cannot add watch face after build #3

Closed naq219 closed 2 years ago

naq219 commented 2 years ago

Hello, when i run build.sh . it error: error: unknown option '-e' then i deleted argument -e for i in ../../assets/*.png; do wfjs convertPngToTga -i "$i" png; done rebuild success. Add watch face to device success . But when i edit file watchface/index.js, rebuild , add watch face to device but not success

Nadeflore commented 2 years ago

Hi, The reason you got the "error: unknown option '-e' " error, is because I added the -e parameter to watchface-js image converter but forgot to publish a new version. I just published version 0.3.0 which includes the -e option So upgrade it with

npm install -g watchface-js

Check you now have the 0.3.0 version

wfjs --version

and the build script should work with the -e option

If you still get errors after this, it might be because there errors in the changes you made. You can try running it with the official simulator to get console ouputs

naq219 commented 2 years ago

Thank you. can we continues run app when screen of? i use timer.createTimer but when screen of it not work