diff --git a/icons/bluetooth.xbm b/icons/bluetooth.xbm new file mode 100644 index 0000000..dcbee5f --- /dev/null +++ b/icons/bluetooth.xbm @@ -0,0 +1,6 @@ +#define bluetooth_width 16 +#define bluetooth_height 16 +static char bluetooth_bits[] = { + 0x00, 0x00, 0x80, 0x01, 0x80, 0x03, 0x80, 0x06, 0x90, 0x0C, 0xB0, 0x0C, + 0xE0, 0x06, 0xC0, 0x03, 0x80, 0x01, 0xC0, 0x03, 0xE0, 0x06, 0xB0, 0x0C, + 0x90, 0x0C, 0x80, 0x06, 0x80, 0x03, 0x80, 0x01, }; diff --git a/icons/check.xbm b/icons/check.xbm new file mode 100644 index 0000000..eb904d1 --- /dev/null +++ b/icons/check.xbm @@ -0,0 +1,6 @@ +#define check_width 16 +#define check_height 16 +static char check_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0xF0, + 0x00, 0xF8, 0x0E, 0x7C, 0x1E, 0x3E, 0x3E, 0x1F, 0xF8, 0x0F, 0xF0, 0x07, + 0xE0, 0x03, 0xC0, 0x01, 0x00, 0x00, 0x00, 0x00, }; diff --git a/icons/no_con.xbm b/icons/no_con.xbm new file mode 100644 index 0000000..dcd68f6 --- /dev/null +++ b/icons/no_con.xbm @@ -0,0 +1,6 @@ +#define no_con_width 16 +#define no_con_height 16 +static char no_con_bits[] = { + 0x00, 0x00, 0xC0, 0x07, 0xF0, 0x1F, 0xF8, 0x3F, 0x7C, 0x7C, 0x1C, 0x7E, + 0x0E, 0xFF, 0x8E, 0xEF, 0xCE, 0xE3, 0xEE, 0xE1, 0xFC, 0x70, 0x7C, 0x78, + 0xF8, 0x3F, 0xF0, 0x1F, 0xC0, 0x07, 0x00, 0x00, }; diff --git a/icons/signal_1.xbm b/icons/signal_1.xbm new file mode 100644 index 0000000..34d16ef --- /dev/null +++ b/icons/signal_1.xbm @@ -0,0 +1,6 @@ +#define signal_1_width 16 +#define signal_1_height 16 +static char signal_1_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x02, 0x00, 0x03, 0x00, 0x03, 0x00, }; diff --git a/icons/signal_2.xbm b/icons/signal_2.xbm new file mode 100644 index 0000000..4310e00 --- /dev/null +++ b/icons/signal_2.xbm @@ -0,0 +1,6 @@ +#define signal_2_width 16 +#define signal_2_height 16 +static char signal_2_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x30, 0x00, 0x38, 0x00, + 0x38, 0x00, 0x3A, 0x00, 0x3B, 0x00, 0x3B, 0x00, }; diff --git a/icons/signal_3.xbm b/icons/signal_3.xbm new file mode 100644 index 0000000..494ba87 --- /dev/null +++ b/icons/signal_3.xbm @@ -0,0 +1,6 @@ +#define signal_3_width 16 +#define signal_3_height 16 +static char signal_3_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, + 0x00, 0x03, 0x80, 0x03, 0x80, 0x03, 0xA0, 0x03, 0xB0, 0x03, 0xB8, 0x03, + 0xB8, 0x03, 0xBA, 0x03, 0xBB, 0x03, 0xBB, 0x03, }; diff --git a/icons/signal_4.xbm b/icons/signal_4.xbm new file mode 100644 index 0000000..0f81ceb --- /dev/null +++ b/icons/signal_4.xbm @@ -0,0 +1,6 @@ +#define signal_4_width 16 +#define signal_4_height 16 +static char signal_4_bits[] = { + 0x00, 0x00, 0x00, 0x20, 0x00, 0x30, 0x00, 0x38, 0x00, 0x38, 0x00, 0x3A, + 0x00, 0x3B, 0x80, 0x3B, 0x80, 0x3B, 0xA0, 0x3B, 0xB0, 0x3B, 0xB8, 0x3B, + 0xB8, 0x3B, 0xBA, 0x3B, 0xBB, 0x3B, 0xBB, 0x3B, }; diff --git a/icons/talk.xbm b/icons/talk.xbm new file mode 100644 index 0000000..408a652 --- /dev/null +++ b/icons/talk.xbm @@ -0,0 +1,6 @@ +#define talk_width 16 +#define talk_height 16 +static char talk_bits[] = { + 0xFC, 0x3F, 0xFE, 0x7F, 0xFF, 0xFF, 0x0F, 0xF0, 0x07, 0xE0, 0x07, 0xE0, + 0x07, 0xE0, 0x07, 0xE0, 0x07, 0xE0, 0x07, 0xE0, 0x0F, 0xF0, 0x8F, 0x7F, + 0xDE, 0x3F, 0xFC, 0x1F, 0x78, 0x00, 0x30, 0x00, }; diff --git a/icons/temperature.xbm b/icons/temperature.xbm new file mode 100644 index 0000000..faefdb3 --- /dev/null +++ b/icons/temperature.xbm @@ -0,0 +1,6 @@ +#define temperature_width 16 +#define temperature_height 16 +static char temperature_bits[] = { + 0x80, 0x03, 0xC0, 0x07, 0xE0, 0x04, 0xE0, 0x07, 0xE0, 0x04, 0xE0, 0x07, + 0xE0, 0x04, 0xE0, 0x07, 0xE0, 0x04, 0xF0, 0x0F, 0xF8, 0x1F, 0xF8, 0x1F, + 0xF8, 0x1F, 0xF8, 0x1F, 0xF0, 0x0F, 0xE0, 0x07, }; diff --git a/icons/warning.xbm b/icons/warning.xbm new file mode 100644 index 0000000..318b15f --- /dev/null +++ b/icons/warning.xbm @@ -0,0 +1,6 @@ +#define warning_width 16 +#define warning_height 16 +static char warning_bits[] = { + 0x00, 0x01, 0x80, 0x03, 0x80, 0x03, 0xC0, 0x07, 0xC0, 0x06, 0xE0, 0x0E, + 0x60, 0x0C, 0x70, 0x1D, 0x30, 0x19, 0x38, 0x39, 0x18, 0x31, 0x1C, 0x70, + 0x0C, 0x61, 0xFE, 0xFF, 0xFE, 0xFF, 0x00, 0x00, }; diff --git a/icons/wifi1.xbm b/icons/wifi1.xbm new file mode 100644 index 0000000..a0c3ea3 --- /dev/null +++ b/icons/wifi1.xbm @@ -0,0 +1,6 @@ +#define wifi1_width 16 +#define wifi1_height 16 +static char wifi1_bits[] = { + 0x00, 0x00, 0xE0, 0x07, 0xF8, 0x1F, 0xFC, 0x3F, 0x0E, 0x70, 0xE6, 0x67, + 0xF0, 0x0F, 0x18, 0x18, 0xC0, 0x03, 0xE0, 0x07, 0x20, 0x04, 0x80, 0x01, + 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; diff --git a/icons/wifi2.xbm b/icons/wifi2.xbm new file mode 100644 index 0000000..ba369d3 --- /dev/null +++ b/icons/wifi2.xbm @@ -0,0 +1,6 @@ +#define wifi2_width 16 +#define wifi2_height 16 +static char wifi2_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x07, + 0xF0, 0x0F, 0x18, 0x18, 0xC0, 0x03, 0xE0, 0x07, 0x20, 0x04, 0x80, 0x01, + 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; diff --git a/make_flags.py b/make_flags.py index 27b306d..6938665 100755 --- a/make_flags.py +++ b/make_flags.py @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- import argparse +import os import pathlib import re import subprocess @@ -23,9 +24,12 @@ args = parser.parse_args() -git_desc = ( - subprocess.check_output(["git", "describe", "--dirty"]).decode("utf-8").strip() -) +if os.getenv("CI"): + git_desc = os.getenv("GITHUB_REF") +else: + git_desc = ( + subprocess.check_output(["git", "describe", "--dirty"]).decode("utf-8").strip() + ) VER_TPL = """ @@ -86,7 +90,7 @@ def replace_content(fd, new_content): "#define ", "#define icon_" ) - tf.unlink() + # tf.unlink() with open("./src/icons_xbm.h", "a+") as fd: replace_content(fd, xbm_content)