2021-07-27 21:58:16 +02:00
|
|
|
#!/bin/bash
|
|
|
|
pushd jerryscript
|
2023-06-16 03:12:21 +02:00
|
|
|
gcc_version="$(gcc -v 2>&1 | grep -oe '^gcc version [0-9][0-9\.]*[0-9]' | sed 's|^.* ||;s|\..*||')"
|
|
|
|
(( gcc_version > 11 )) && git apply ../patches/jerryscript-gcc-12-build-fix.patch
|
2021-07-27 21:58:16 +02:00
|
|
|
python3 tools/build.py --jerry-cmdline-snapshot ON
|
|
|
|
popd
|
2023-10-11 17:17:11 +02:00
|
|
|
pushd fossil-hr-gbapps/watchface
|
|
|
|
export jerry=../../jerryscript/build/bin/jerry-snapshot
|
2021-07-27 21:58:16 +02:00
|
|
|
$jerry generate -f '' open_source_watchface.js -o openSourceWatchface.bin
|
|
|
|
$jerry generate -f '' widget_date.js -o widgetDate.bin
|
|
|
|
$jerry generate -f '' widget_weather.js -o widgetWeather.bin
|
|
|
|
$jerry generate -f '' widget_steps.js -o widgetSteps.bin
|
|
|
|
$jerry generate -f '' widget_hr.js -o widgetHR.bin
|
2021-07-28 16:09:51 +02:00
|
|
|
$jerry generate -f '' widget_battery.js -o widgetBattery.bin
|
|
|
|
$jerry generate -f '' widget_calories.js -o widgetCalories.bin
|
|
|
|
$jerry generate -f '' widget_2nd_tz.js -o widget2ndTZ.bin
|
|
|
|
$jerry generate -f '' widget_activemins.js -o widgetActiveMins.bin
|
|
|
|
$jerry generate -f '' widget_chanceofrain.js -o widgetChanceOfRain.bin
|
2023-06-18 22:11:07 +02:00
|
|
|
$jerry generate -f '' widget_uv.js -o widgetUV.bin
|
2021-11-12 15:34:57 +01:00
|
|
|
$jerry generate -f '' widget_custom.js -o widgetCustom.bin
|
2021-07-27 21:58:16 +02:00
|
|
|
popd
|
2023-10-11 17:17:11 +02:00
|
|
|
mv fossil-hr-gbapps/watchface/*.bin ../app/src/main/assets/fossil_hr/
|
|
|
|
pushd fossil-hr-gbapps/navigationApp
|
|
|
|
mkdir -p build/files/{code,config,display_name,icons,layout}
|
|
|
|
$jerry generate -f '' app.js -o build/files/code/navigationApp
|
|
|
|
python3 ../../pack.py -i build/ -o navigationApp.wapp
|
|
|
|
popd
|
|
|
|
mv fossil-hr-gbapps/navigationApp/navigationApp.wapp ../app/src/main/assets/fossil_hr/
|