Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28b5ab04ca | ||
|
|
d125ce4f2d | ||
|
|
0e1f20e298 | ||
|
|
53add1473d | ||
|
|
53bf4f2eb2 | ||
|
|
11bcaf4ee0 | ||
|
|
19d5411a24 | ||
|
|
843bd6fe66 | ||
|
|
b8efa68601 | ||
|
|
e1989a20aa | ||
|
|
0377b9181b | ||
|
|
00fabf1981 | ||
|
|
f992a9180b | ||
|
|
41df5d5dba | ||
|
|
7a1bf94ceb | ||
|
|
9ae46c627e | ||
|
|
f5390d85a5 | ||
|
|
a1260b624f | ||
|
|
50f3a8ed6d | ||
|
|
3599bad770 | ||
|
|
328b5aff3f | ||
|
|
46a175fa34 | ||
|
|
550e00de88 | ||
|
|
9dcecd6a50 | ||
|
|
f33b8a191d | ||
|
|
7e7f0329d4 | ||
|
|
f11cbc80fb | ||
|
|
f107b2a0df | ||
|
|
82ac24d32f | ||
|
|
573b632c41 | ||
|
|
6339dab94c | ||
|
|
85cd06159f | ||
|
|
305053dec5 | ||
|
|
ecde810b97 | ||
|
|
45d118b733 | ||
|
|
bbf4f16b02 | ||
|
|
bd2bb39f29 | ||
|
|
5eef3ea535 | ||
|
|
a587b06673 | ||
|
|
85905afe96 | ||
|
|
997a9163f1 | ||
|
|
fb5134114d | ||
|
|
6122de4296 | ||
|
|
ad7095ec7c | ||
|
|
685eb4e143 | ||
|
|
333ba2f875 | ||
|
|
decfee4212 | ||
|
|
2fbebbec05 | ||
|
|
7198ebc587 | ||
|
|
a2fd6b63c8 | ||
|
|
e13d77aaaf | ||
|
|
e228b1acc8 | ||
|
|
6f692b7e32 | ||
|
|
8a528a6e47 | ||
|
|
493ad25947 | ||
|
|
5de8e26024 | ||
|
|
8c2f07ae66 | ||
|
|
fc0729181e | ||
|
|
d0613da5c4 | ||
|
|
ac944513cd | ||
|
|
6cd29b096c | ||
|
|
b19f3c4c4c | ||
|
|
28e90d8747 | ||
|
|
53b70d16d5 | ||
|
|
9a243a8019 | ||
|
|
feab1a9350 | ||
|
|
b193a2e726 | ||
|
|
70bedd0473 | ||
|
|
7bf57c56d5 | ||
|
|
6c47e79b09 | ||
|
|
28759c07e3 | ||
|
|
9ea2e00696 | ||
|
|
910902d5cc | ||
|
|
779413138e | ||
|
|
009263e870 | ||
|
|
28ece54b9f | ||
|
|
a9f3646f8c | ||
|
|
6605d396dd | ||
|
|
90c36f55d5 | ||
|
|
d1a6db792a | ||
|
|
12fb43d300 | ||
|
|
dbe11dffbb | ||
|
|
61d7d0dbb0 | ||
|
|
fe43032ccc | ||
|
|
d3b5cb815b | ||
|
|
e2ff252eec | ||
|
|
ea24cd0e6f | ||
|
|
b83d2a35cd | ||
|
|
e7bf8829ec | ||
|
|
c83b05f1ac | ||
|
|
3077f00966 | ||
|
|
e8dfd3db3d | ||
|
|
1f5a2a6c6d | ||
|
|
4175783d93 | ||
|
|
d527f78a8d | ||
|
|
39a2c2e1b0 | ||
|
|
529e8aac90 | ||
|
|
f17fed4326 | ||
|
|
da62a1a546 | ||
|
|
d6801e3316 | ||
|
|
85813b4c1f | ||
|
|
c0dc855f77 | ||
|
|
871ea723bb | ||
|
|
529512c48d | ||
|
|
cf270ba04b | ||
|
|
e366faee1f | ||
|
|
bab3db1c26 | ||
|
|
11867cf71c | ||
|
|
3ac1f58405 | ||
|
|
8128a83c4c | ||
|
|
4ce7121044 | ||
|
|
842543c6cb | ||
|
|
0a25f04da5 | ||
|
|
f8c4513d2c | ||
|
|
838fbd3ea6 | ||
|
|
2797478457 | ||
|
|
a1ef965a0a | ||
|
|
83733697ab | ||
|
|
2a9cf6dc16 | ||
|
|
17a8c616a8 | ||
|
|
3cba691a49 | ||
|
|
108e4775b6 | ||
|
|
02b90adeb8 | ||
|
|
6c84ebe030 | ||
|
|
c8efea2e2f | ||
|
|
058afcf19b | ||
|
|
72c7ca0286 | ||
|
|
6758780183 | ||
|
|
d7eb388daf | ||
|
|
78bf4f81e0 | ||
|
|
ff68e1b8b3 | ||
|
|
f3e3f55cbe | ||
|
|
f9913eddb7 | ||
|
|
ba07c4d563 | ||
|
|
f99157cc3e | ||
|
|
c88f9eed06 | ||
|
|
fb80f5e0d4 | ||
|
|
b12a05f2f1 | ||
|
|
1cd6a4c1f7 | ||
|
|
5ffd6f861a | ||
|
|
59ee3d24b1 | ||
|
|
e5d94569d0 | ||
|
|
dbf802f809 | ||
|
|
a91426bd90 | ||
|
|
bf2b3ec0e3 | ||
|
|
400a8e516d | ||
|
|
108b3af91c | ||
|
|
e1d856c79a | ||
|
|
b07e8810ea | ||
|
|
4f13f01ccb | ||
|
|
0beb8868d9 | ||
|
|
934366bf76 | ||
|
|
8ea8894f07 | ||
|
|
888c57e216 | ||
|
|
446d7ba73e | ||
|
|
786aa6cca7 | ||
|
|
3dd7f1c67d | ||
|
|
9a73f8287f | ||
|
|
279341cbe5 | ||
|
|
64726e6c83 | ||
|
|
1af803c684 | ||
|
|
fbb84fd8ce | ||
|
|
e9f90216c1 | ||
|
|
e58742909f | ||
|
|
b91804a656 | ||
|
|
666cf6dec4 | ||
|
|
3232483494 | ||
|
|
560bfd14e3 | ||
|
|
8b82d6ccca | ||
|
|
6458781bfb | ||
|
|
3e37e8d9dc | ||
|
|
d7ee514132 | ||
|
|
c8a45734eb | ||
|
|
9fd589f704 | ||
|
|
1c3e45f824 | ||
|
|
366e9e0a3b | ||
|
|
bd42eff987 | ||
|
|
c7446fcdd3 | ||
|
|
f3aba36d00 | ||
|
|
fbbad35a1a | ||
|
|
1d2207b045 | ||
|
|
e5c7d4be1a | ||
|
|
94b3bd5f9d | ||
|
|
900553a78c | ||
|
|
dc67b1bfbe | ||
|
|
0287ec2c42 | ||
|
|
60a7ea95d8 | ||
|
|
70d6ebd5d1 | ||
|
|
0051b8606d | ||
|
|
8105d9c2a1 | ||
|
|
30b7fe49f7 | ||
|
|
6cae610826 | ||
|
|
c33e306696 | ||
|
|
bb2ca352c0 | ||
|
|
a47e9659f6 | ||
|
|
90d70c554f | ||
|
|
9518791a68 | ||
|
|
447ca785fb | ||
|
|
413e944db0 | ||
|
|
49544e7deb | ||
|
|
ad0f17ebb7 | ||
|
|
85330a2390 | ||
|
|
c9904167b2 | ||
|
|
b8ad52294b | ||
|
|
39a1be8b24 | ||
|
|
9130be924f | ||
|
|
f7eec1888c | ||
|
|
8e38e2a6f4 | ||
|
|
3575ba97f0 | ||
|
|
4479ef83e2 | ||
|
|
0e17c333d5 | ||
|
|
f4e3522523 | ||
|
|
bfd8d552d2 | ||
|
|
e3cbeda015 | ||
|
|
1c242eac02 | ||
|
|
3220a032df | ||
|
|
7b6a7aa9db | ||
|
|
c36d80a247 | ||
|
|
eedcbdc38e | ||
|
|
d1307b06f4 | ||
|
|
61f6e2ca41 | ||
|
|
43d9fabfbc | ||
|
|
48ef3929fc | ||
|
|
02774c652c | ||
|
|
8c692e51e5 | ||
|
|
00faaf7e93 | ||
|
|
ac8400e57c | ||
|
|
6eedd34bb0 | ||
|
|
00603e09bb | ||
|
|
9c3cf327b2 | ||
|
|
ebcb99e944 | ||
|
|
ca763d9183 | ||
|
|
c89f5e9b09 | ||
|
|
1d373214f2 | ||
|
|
ca6747894a | ||
|
|
7337178a2b | ||
|
|
c238bc5bd3 | ||
|
|
197fc01897 | ||
|
|
68622fbab8 | ||
|
|
49f929c3f4 | ||
|
|
61f016831d | ||
|
|
90fbe0f049 | ||
|
|
9b25bd887d | ||
|
|
6764286c22 | ||
|
|
8cbb34a62c | ||
|
|
33082cebf4 | ||
|
|
64c1b6b7db | ||
|
|
7e84a69098 | ||
|
|
727eaa1f72 | ||
|
|
0d1a7c12f8 | ||
|
|
e50f8d1e7b | ||
|
|
0024cd84ef | ||
|
|
2c673ada7f | ||
|
|
5efa30658b | ||
|
|
35f7807d40 | ||
|
|
f03acd1d06 | ||
|
|
ba0c1efa73 | ||
|
|
060f7dbc9a | ||
|
|
b862f62ec3 | ||
|
|
9e9d0c49cc | ||
|
|
43ab976379 | ||
|
|
7c1c87ec7a | ||
|
|
ae852f168e | ||
|
|
b253620fb7 | ||
|
|
dee24910bd | ||
|
|
d5fdb4ec28 | ||
|
|
bc29d46e53 | ||
|
|
7ce52bd753 | ||
|
|
dd62b60496 | ||
|
|
f47c5c1345 | ||
|
|
5c3b4945ee | ||
|
|
7224e76310 | ||
|
|
2467615bb3 | ||
|
|
0350f52640 | ||
|
|
d793416c61 | ||
|
|
f390f6f587 | ||
|
|
d924f4125f | ||
|
|
6ec903d67e | ||
|
|
83b08d2d3b | ||
|
|
cba84c24b0 | ||
|
|
babf23e499 | ||
|
|
c45d5db712 | ||
|
|
336e4e95ee | ||
|
|
30a9a56b37 | ||
|
|
c6592f670f | ||
|
|
4380b0211b | ||
|
|
5b5572e822 | ||
|
|
f13ad7eae6 | ||
|
|
7a88e3df9e | ||
|
|
ad2bb49238 | ||
|
|
2cbad01e93 | ||
|
|
c284ce8274 | ||
|
|
79154be186 | ||
|
|
b6fcfc21b7 | ||
|
|
91a6e99df2 | ||
|
|
2b44df84c9 | ||
|
|
c810e52642 | ||
|
|
6647f5fd8e | ||
|
|
acb2fc9b3b | ||
|
|
a965e5a6d4 | ||
|
|
fb3b1118e0 | ||
|
|
5784b9a7b9 | ||
|
|
d5330f3973 | ||
|
|
8773a00523 | ||
|
|
ed5d4875be | ||
|
|
cd3cfe5f3f | ||
|
|
4c4bb6979d | ||
|
|
723fda6258 | ||
|
|
d13060afec | ||
|
|
d13eb27613 | ||
|
|
f07bb2c3ac | ||
|
|
58364d8efb | ||
|
|
af9b733f1d | ||
|
|
1267cc9c92 | ||
|
|
1fd6be3618 | ||
|
|
5cf75b5255 | ||
|
|
4cd969e49c | ||
|
|
82aaa8e4b3 | ||
|
|
7dcaa9987e | ||
|
|
f4fec780c2 | ||
|
|
b097ccc5df | ||
|
|
9e1df485bd | ||
|
|
b14f7cab65 | ||
|
|
01273e63b5 | ||
|
|
de29b9ec3c | ||
|
|
0d6f18475e | ||
|
|
a6e15595ec | ||
|
|
c1f1462331 | ||
|
|
fe9600fe8b | ||
|
|
fa4be7a4b2 | ||
|
|
20ae8b4eca | ||
|
|
61c0d0ea2a | ||
|
|
b13fa53bd9 | ||
|
|
ab21a5ee5d | ||
|
|
46180bdcdd | ||
|
|
45413e3bff | ||
|
|
e9a4c56fe3 | ||
|
|
4fbfa6f30f | ||
|
|
aaaf626ab5 | ||
|
|
064fae5af0 | ||
|
|
ca8b1677f6 | ||
|
|
9c8c06d1ee | ||
|
|
47b529a894 | ||
|
|
48550f0e1c | ||
|
|
33cd6e3157 | ||
|
|
a7fef0f52b | ||
|
|
901805b7d3 | ||
|
|
91c0cdf370 | ||
|
|
98bb53259f | ||
|
|
9466051b66 | ||
|
|
f4c9eda118 | ||
|
|
4051049fd7 | ||
|
|
8dacb6789a | ||
|
|
99105c8655 | ||
|
|
111e0a56db | ||
|
|
6f12159e1a | ||
|
|
deffd1cdba | ||
|
|
7e76bc8a14 | ||
|
|
5417759974 | ||
|
|
5cc65ceb82 | ||
|
|
258e60265f | ||
|
|
4ebb3b2dab | ||
|
|
c8a5d216bb | ||
|
|
6be736192f | ||
|
|
781b1536ca | ||
|
|
3d7445c0ca | ||
|
|
482ca0cd46 | ||
|
|
82ea299405 | ||
|
|
cb09108156 | ||
|
|
6e7b9884f6 | ||
|
|
e79b6b9596 | ||
|
|
460ddbf847 | ||
|
|
1a589b4ff9 | ||
|
|
547fcd754f | ||
|
|
c9aec322ae | ||
|
|
a1db6006ac | ||
|
|
53393b482f | ||
|
|
de34680ee2 | ||
|
|
e10e3e716e | ||
|
|
0eea38fdd0 | ||
|
|
0238933e51 | ||
|
|
7f719c7631 | ||
|
|
3bf4288f64 | ||
|
|
a033748d87 | ||
|
|
ed9ca9ec46 | ||
|
|
8436b66d6b | ||
|
|
9ed8b5e1f5 | ||
|
|
f9dd0209c4 | ||
|
|
d45d224f91 | ||
|
|
08517097e7 | ||
|
|
c171836e86 | ||
|
|
14dc8f46f2 | ||
|
|
124223901e | ||
|
|
1ee1e6223c | ||
|
|
a8bfce26a9 | ||
|
|
78df44e946 | ||
|
|
1b0f0f301a | ||
|
|
5f8492f8f7 | ||
|
|
ef56c59207 | ||
|
|
8c7aaa4183 | ||
|
|
54b0144903 | ||
|
|
ee3cf84e8d | ||
|
|
6d67c320d4 | ||
|
|
15715808b2 | ||
|
|
dbde235112 | ||
|
|
ea9280964d | ||
|
|
97a37e6cc8 | ||
|
|
2887335be1 | ||
|
|
5c49391d3a | ||
|
|
9f7bb76455 | ||
|
|
9e718e8e4b | ||
|
|
52688313d4 | ||
|
|
f5e843de98 | ||
|
|
3696afcffb | ||
|
|
73a54f56c3 | ||
|
|
0ded03a8e3 | ||
|
|
55a60dc61d | ||
|
|
8d1c989312 | ||
|
|
20382dd89d | ||
|
|
ae4e110259 | ||
|
|
58a0a2eb88 | ||
|
|
ff2b4e5b14 | ||
|
|
87d4f6a5c1 | ||
|
|
95e370b634 | ||
|
|
26af3768f0 | ||
|
|
7f4935fe58 | ||
|
|
253f04ee46 | ||
|
|
3c541b087f | ||
|
|
9cc67b287c | ||
|
|
c59af4dc1a | ||
|
|
9ffc7e1490 | ||
|
|
2097f8cb90 | ||
|
|
1c26a83989 | ||
|
|
ae93e11df3 | ||
|
|
9634744036 | ||
|
|
e339f1c616 | ||
|
|
7c1dca9c6b | ||
|
|
7502cb455c | ||
|
|
ffeb534ced | ||
|
|
6d3e76b160 | ||
|
|
eb7db35f0e | ||
|
|
45c89d2b8f | ||
|
|
71f976fa69 | ||
|
|
cb8efebcfd | ||
|
|
dbd68442cf | ||
|
|
3b33b9d3b6 | ||
|
|
70a623b11c | ||
|
|
bd0dcef286 | ||
|
|
e9343dad76 | ||
|
|
80c754c053 | ||
|
|
eab60dd4ac | ||
|
|
2bf0d4920b | ||
|
|
284b955e81 | ||
|
|
a3a27341f8 | ||
|
|
9790b7a9f2 | ||
|
|
2fa5f95253 | ||
|
|
9b8da214ea | ||
|
|
dbaa13d399 | ||
|
|
dd63d00afe | ||
|
|
1e8a1b15fa | ||
|
|
5dc0d8a019 | ||
|
|
6713feffd5 | ||
|
|
285c7b1d6b | ||
|
|
d3ff335f13 | ||
|
|
c57c5ff5b3 | ||
|
|
194d6d88ae | ||
|
|
d0e011b9aa | ||
|
|
359b0de16f | ||
|
|
8acc832404 | ||
|
|
83ac5dfba1 | ||
|
|
9618237931 | ||
|
|
370fea5bd3 | ||
|
|
30d86a2db4 | ||
|
|
a81b741976 | ||
|
|
e24af8038a | ||
|
|
b1aceaccf6 | ||
|
|
d43384147c | ||
|
|
0f28310634 | ||
|
|
2d261e369b | ||
|
|
c40e444a4f | ||
|
|
4ad1792021 | ||
|
|
d0d97fc3b8 | ||
|
|
01fded007e | ||
|
|
fe878997f6 | ||
|
|
6ee6e5b5ad | ||
|
|
cc8e8a41bd | ||
|
|
18daef3d69 | ||
|
|
4fc9f7db00 | ||
|
|
61c372330c | ||
|
|
93d0e881fc | ||
|
|
c41011ff4b | ||
|
|
7631dfae28 | ||
|
|
1f8e16e491 | ||
|
|
d262e9babb | ||
|
|
4728ba8bec | ||
|
|
89343e0607 | ||
|
|
4bcc744c8d | ||
|
|
618a77f3a2 | ||
|
|
272aea7bd4 | ||
|
|
3a40c10336 | ||
|
|
843c908e0a | ||
|
|
0a267df3f6 | ||
|
|
8aac9b7f53 | ||
|
|
3cae1b8a57 | ||
|
|
e36c1f0654 | ||
|
|
a0ca798cc9 | ||
|
|
6911eb3f3e | ||
|
|
d05f187772 | ||
|
|
55abf4518f | ||
|
|
4f53c58e1f | ||
|
|
55ac631cb8 | ||
|
|
e142907078 | ||
|
|
349e2e11d7 | ||
|
|
a3e505228b | ||
|
|
0062f8daa9 | ||
|
|
02c9086fc2 | ||
|
|
89c5b6775a | ||
|
|
3e93770831 | ||
|
|
c02bda07c7 | ||
|
|
f6ef1ea93d | ||
|
|
6267a226be | ||
|
|
b48d9db866 | ||
|
|
18e6cbb8a7 | ||
|
|
f935f547cb | ||
|
|
09f97b5275 | ||
|
|
8795455af8 | ||
|
|
64baee6962 | ||
|
|
abe7d91db7 | ||
|
|
eb4bbb3987 | ||
|
|
59de2b7eea | ||
|
|
13b7a95663 | ||
|
|
b23e4fe58e | ||
|
|
665174edaa | ||
|
|
adea75fae4 | ||
|
|
654ef7d4f3 | ||
|
|
e1cb8dd110 | ||
|
|
e42b820db4 | ||
|
|
d5007ed418 | ||
|
|
d6cc224c5a | ||
|
|
7cd4b40f3b | ||
|
|
941b1eaf36 | ||
|
|
fb7d4be430 | ||
|
|
c11dcf401a | ||
|
|
7b01acf79b | ||
|
|
748cea4772 | ||
|
|
19ad6ab1a6 | ||
|
|
f98cc4a5a1 | ||
|
|
624a7a83e1 | ||
|
|
cc03f1712a | ||
|
|
8c8b74d9a2 | ||
|
|
0bc03b608d | ||
|
|
74eaa050e0 | ||
|
|
2a549c25c8 | ||
|
|
cf9aada500 | ||
|
|
991d350721 | ||
|
|
6708809da2 | ||
|
|
cc615fbfd2 | ||
|
|
31ccb43a81 | ||
|
|
fafa84dc5d | ||
|
|
5893a652e3 | ||
|
|
a2c901d178 | ||
|
|
2d89023775 | ||
|
|
52174dea04 | ||
|
|
5f91f75485 | ||
|
|
007a77a171 | ||
|
|
ccafb682d9 | ||
|
|
465234ae66 | ||
|
|
07f66a0155 | ||
|
|
d27fd2d4ff | ||
|
|
62af672f6a | ||
|
|
9d42b70e46 | ||
|
|
6eb502d09d | ||
|
|
8136ea7c43 | ||
|
|
2f63bd0f2d | ||
|
|
f3bda4ab45 | ||
|
|
674e2c39ff | ||
|
|
4cad4f8599 | ||
|
|
20ecd2954e | ||
|
|
92e651fa24 | ||
|
|
0115ae1017 | ||
|
|
687f5af9c0 | ||
|
|
cf87438af5 |
No files matched your search
@@ -1,2 +1,3 @@
|
||||
unpackaged_assets/**/*.ogg filter=lfs diff=lfs merge=lfs -text
|
||||
test-fixtures/audio/*.mp3 filter=lfs diff=lfs merge=lfs -text
|
||||
themes/catalog_*.kss whitespace=-blank-at-eof
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
scripts/check-secrets.py --staged
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
tmp=$(mktemp "${TMPDIR:-/tmp}/inbe-pre-push.XXXXXX")
|
||||
trap 'rm -f "$tmp"' EXIT
|
||||
cat > "$tmp"
|
||||
|
||||
if command -v git-lfs >/dev/null 2>&1; then
|
||||
git lfs pre-push "$@" < "$tmp"
|
||||
elif git lfs version >/dev/null 2>&1; then
|
||||
git lfs pre-push "$@" < "$tmp"
|
||||
else
|
||||
printf '%s\n' "This repository uses Git LFS, but git-lfs is not available." >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
scripts/check-secrets.py --pre-push "$@" < "$tmp"
|
||||
@@ -0,0 +1,42 @@
|
||||
name: Set up Emscripten
|
||||
description: >
|
||||
Install the Emscripten SDK version named in .github/emscripten-version and
|
||||
put it on PATH. The SDK, including the system libraries and ports it builds
|
||||
on first use, is cached per version, so a job only downloads it when the
|
||||
pinned version changes.
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Read the pinned Emscripten version
|
||||
id: version
|
||||
shell: bash
|
||||
run: echo "version=$(tr -d '[:space:]' < .github/emscripten-version)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Restore the Emscripten SDK
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/emsdk
|
||||
key: emsdk-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}-${{ hashFiles('scripts/ensure-emscripten-zlib.sh') }}
|
||||
restore-keys: |
|
||||
emsdk-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}-
|
||||
|
||||
- name: Install and activate Emscripten
|
||||
shell: bash
|
||||
env:
|
||||
EMSCRIPTEN_VERSION: ${{ steps.version.outputs.version }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ ! -x "$HOME/emsdk/emsdk" ]; then
|
||||
rm -rf "$HOME/emsdk"
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
fi
|
||||
if [ ! -x "$HOME/emsdk/upstream/emscripten/emcc" ]; then
|
||||
"$HOME/emsdk/emsdk" install "$EMSCRIPTEN_VERSION"
|
||||
fi
|
||||
"$HOME/emsdk/emsdk" activate "$EMSCRIPTEN_VERSION"
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
@@ -0,0 +1,61 @@
|
||||
name: Fetch Ziran packages
|
||||
description: >
|
||||
Fetch the packages pinned in ziran.lock. The built Ziran compiler is cached
|
||||
by the runner image and the toolchain commit, so bumping another package
|
||||
such as Kryon keeps it; the package checkouts are cached by the whole lock and fall back
|
||||
to the previous checkouts, so a bump fetches only what changed.
|
||||
|
||||
inputs:
|
||||
save-toolchain:
|
||||
description: >
|
||||
Save the built compiler to the cache. A job that only fetches packages
|
||||
must not, or it would store a toolchain cache without the compiler.
|
||||
default: 'true'
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Read the Ziran toolchain commit
|
||||
id: toolchain
|
||||
shell: sh
|
||||
run: |
|
||||
commit=$(python3 -c 'import json; print(json.load(open("ziran.lock"))["toolchain"]["commit"])')
|
||||
echo "commit=$commit" >> "$GITHUB_OUTPUT"
|
||||
# A compiler built on a newer image needs its newer C library, so
|
||||
# images do not share one: ubuntu-22.04 cannot run a glibc 2.39 build.
|
||||
libc=$(getconf GNU_LIBC_VERSION 2>/dev/null | tr ' ' '-' || true)
|
||||
echo "system=${ImageOS:-local}-${libc:-nolibc}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Restore the Ziran toolchain
|
||||
if: inputs.save-toolchain == 'true'
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
build/ziran-bootstrap
|
||||
build/ziran-toolchain
|
||||
key: ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-${{ steps.toolchain.outputs.commit }}
|
||||
restore-keys: |
|
||||
ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-
|
||||
|
||||
- name: Restore the Ziran toolchain without saving it
|
||||
if: inputs.save-toolchain != 'true'
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
build/ziran-bootstrap
|
||||
build/ziran-toolchain
|
||||
key: ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-${{ steps.toolchain.outputs.commit }}
|
||||
restore-keys: |
|
||||
ziran-toolchain-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.system }}-
|
||||
|
||||
- name: Restore the package sources
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/ziran/sources
|
||||
key: ziran-sources-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('ziran.lock') }}
|
||||
restore-keys: |
|
||||
ziran-sources-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
shell: sh
|
||||
run: sh scripts/packages.sh --locked
|
||||
@@ -1,2 +1,11 @@
|
||||
build-essential
|
||||
ripgrep
|
||||
zlib1g-dev
|
||||
libdrm-dev
|
||||
libegl1-mesa-dev
|
||||
libgbm-dev
|
||||
libgles2-mesa-dev
|
||||
libsdl2-dev
|
||||
pkg-config
|
||||
python3-fonttools
|
||||
python3-pil
|
||||
@@ -1,6 +1,6 @@
|
||||
build-essential
|
||||
gcc-mingw-w64-i686-win32
|
||||
gcc-mingw-w64-x86-64-win32
|
||||
zlib1g-dev
|
||||
libz-mingw-w64-dev
|
||||
zip
|
||||
nsis
|
||||
@@ -0,0 +1 @@
|
||||
6.0.10
|
||||
@@ -17,32 +17,67 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
guard-submodule-urls:
|
||||
name: Submodule URLs are public HTTPS
|
||||
secret-scan:
|
||||
name: Secret Scan
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
with:
|
||||
save-toolchain: 'false'
|
||||
|
||||
- name: Check Version Consistency
|
||||
run: |
|
||||
python3 scripts/check-version.py
|
||||
python3 tests/version_test.py
|
||||
|
||||
- name: Scan Tracked Files and History
|
||||
run: |
|
||||
set -euo pipefail
|
||||
python3 scripts/check-secrets.py --working-tree
|
||||
python3 scripts/check-secrets.py --history
|
||||
|
||||
guard-package-urls:
|
||||
name: Package URLs are public HTTPS
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Plain checkout on purpose: the guard must not depend on fetching
|
||||
# the submodules it validates (an SSH URL would break that fetch).
|
||||
# the packages it validates (an SSH URL would break that fetch).
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Reject non-HTTPS submodule URLs
|
||||
- name: Reject submodules and non-HTTPS package URLs
|
||||
run: |
|
||||
set -eu
|
||||
if [ ! -f .gitmodules ]; then echo "no submodules - ok"; exit 0; fi
|
||||
bad=$(grep -nE '^[[:space:]]*url[[:space:]]*=' .gitmodules \
|
||||
| grep -vE '^[0-9]+:[[:space:]]*url[[:space:]]*=[[:space:]]*https://' || true)
|
||||
if [ -n "$bad" ]; then
|
||||
echo "::error::Non-HTTPS submodule URL(s) break fresh clones and CI:$bad"
|
||||
if [ -f .gitmodules ]; then
|
||||
echo "::error::Dependencies are Ziran packages in ziran.toml, not submodules"
|
||||
exit 1
|
||||
fi
|
||||
echo "all submodule URLs HTTPS - ok"
|
||||
bad=$(grep -nE '^[[:space:]]*git[[:space:]]*=' ziran.toml \
|
||||
| grep -vE '^[0-9]+:[[:space:]]*git[[:space:]]*=[[:space:]]*"https://' || true)
|
||||
if [ -n "$bad" ]; then
|
||||
echo "::error::Non-HTTPS package URL(s) break fresh clones and CI:$bad"
|
||||
exit 1
|
||||
fi
|
||||
echo "all package URLs HTTPS - ok"
|
||||
|
||||
test:
|
||||
name: Test
|
||||
# make test split across runners; each shard is a third of its targets.
|
||||
name: Test (${{ matrix.shard }}/3)
|
||||
runs-on: ubuntu-latest
|
||||
needs: guard-submodule-urls
|
||||
# Secret Scan runs beside the tests; nothing here publishes, so it need not gate them.
|
||||
needs:
|
||||
- guard-package-urls
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
shard: [0, 1, 2]
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
@@ -50,10 +85,17 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Test apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -67,13 +109,39 @@ jobs:
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/test-packages.txt
|
||||
|
||||
- name: Run Tests
|
||||
run: make test
|
||||
run: sh scripts/test-shard.sh ${{ matrix.shard }} 3
|
||||
|
||||
build-chrome-extension:
|
||||
name: Build Chrome Extension
|
||||
- name: Check out sync test server
|
||||
if: matrix.shard == 0
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: kryonlabs/daochi
|
||||
ref: 902230435fba6f64f5067afab551410456fb57d0
|
||||
path: .test-server
|
||||
submodules: recursive
|
||||
|
||||
- name: Set up Go for sync test server
|
||||
if: matrix.shard == 0
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: .test-server/go.mod
|
||||
cache-dependency-path: .test-server/go.sum
|
||||
|
||||
- name: Verify sync and recovery
|
||||
if: matrix.shard == 0
|
||||
run: |
|
||||
make -C .test-server build
|
||||
make sync-server-test DAOCHI_BIN="$GITHUB_WORKSPACE/.test-server/daochi"
|
||||
|
||||
browser-addons:
|
||||
# Builds the web app once, packages it for Chrome and Firefox, and runs
|
||||
# the smoke test in both browsers. It runs beside the tests; a failure in
|
||||
# either still fails the run.
|
||||
name: Build Browser Add-ons
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: test
|
||||
needs:
|
||||
- guard-package-urls
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
@@ -81,10 +149,17 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Web apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -97,92 +172,29 @@ jobs:
|
||||
timeout-minutes: 15
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Set up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk" >> "$GITHUB_PATH"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
uses: ./.github/actions/emscripten
|
||||
|
||||
- name: Build Chrome Extension ZIP
|
||||
- name: Build Chrome and Firefox ZIPs
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
node --version
|
||||
make package-unpackaged-assets
|
||||
make chrome-web-store
|
||||
test -f build/dist/inbe-chrome-web-store.zip
|
||||
|
||||
- name: Run Web Smoke Test
|
||||
run: |
|
||||
set -euo pipefail
|
||||
make web-smoke-test
|
||||
|
||||
- name: Run Canvas Web Smoke Test
|
||||
run: |
|
||||
set -euo pipefail
|
||||
make web-canvas
|
||||
make web-canvas-smoke-test
|
||||
|
||||
build-firefox-addons:
|
||||
name: Build Firefox Add-on
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: test
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Cache Web apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ env.APT_CACHE_DIR }}
|
||||
key: web-apt-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/apt/web-packages.txt') }}
|
||||
restore-keys: |
|
||||
web-apt-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
- name: Install Web Dependencies
|
||||
timeout-minutes: 15
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Set up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk" >> "$GITHUB_PATH"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Build Firefox Add-on ZIP
|
||||
run: |
|
||||
set -euo pipefail
|
||||
make package-unpackaged-assets
|
||||
make firefox-addons
|
||||
test -f build/dist/inbe-firefox-addons.zip
|
||||
make firefox-addons-lint
|
||||
|
||||
# The web build renders on canvas, so this is also the canvas smoke
|
||||
# test.
|
||||
- name: Run Web Smoke Test (Chrome)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
make web-smoke-test
|
||||
|
||||
- name: Install Firefox (Mozilla build)
|
||||
timeout-minutes: 15
|
||||
run: |
|
||||
@@ -205,4 +217,5 @@ jobs:
|
||||
LIBGL_ALWAYS_SOFTWARE: '1'
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
xvfb-run -a --server-args="-screen 0 1280x1024x24" make web-smoke-test-firefox
|
||||
@@ -1,134 +0,0 @@
|
||||
name: Netlify
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: netlify-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Site
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
lfs: true
|
||||
|
||||
- name: Install Packages
|
||||
timeout-minutes: 15
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set Up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk" >> "$GITHUB_PATH"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Build Site
|
||||
run: |
|
||||
set -euo pipefail
|
||||
make site
|
||||
test -f build/site/index.html
|
||||
test -f build/site/build/web/index.html
|
||||
test -f build/site/build/web/index.js
|
||||
test -f build/site/build/web/index.wasm
|
||||
make site-release-assets-check
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Upload Site Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: inbe-site
|
||||
path: build/site
|
||||
if-no-files-found: error
|
||||
|
||||
deploy-preview:
|
||||
name: Deploy Preview
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: github.event_name == 'pull_request'
|
||||
|
||||
steps:
|
||||
- name: Download Site Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: inbe-site
|
||||
path: build/site
|
||||
|
||||
- name: Install Netlify CLI
|
||||
run: npm install --global netlify-cli
|
||||
|
||||
- name: Deploy Preview To Netlify
|
||||
run: |
|
||||
set -euo pipefail
|
||||
auth_token="$(printf '%s' "$NETLIFY_AUTH_TOKEN" | tr -d '\r\n')"
|
||||
site_id="$(printf '%s' "$NETLIFY_SITE_ID" | tr -d '\r\n')"
|
||||
netlify deploy \
|
||||
--dir build/site \
|
||||
--no-build \
|
||||
--alias "pr-${{ github.event.pull_request.number }}" \
|
||||
--message "Preview ${{ github.event.pull_request.number }}" \
|
||||
--auth "$auth_token" \
|
||||
--site "$site_id"
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
|
||||
deploy-production:
|
||||
name: Deploy Production
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
|
||||
|
||||
steps:
|
||||
- name: Download Site Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: inbe-site
|
||||
path: build/site
|
||||
|
||||
- name: Package Site
|
||||
run: |
|
||||
set -euo pipefail
|
||||
test -f build/site/index.html
|
||||
cd build/site
|
||||
python3 -m zipfile -c ../inbe-site.zip .
|
||||
test -s ../inbe-site.zip
|
||||
|
||||
- name: Deploy Production To Netlify
|
||||
run: |
|
||||
set -euo pipefail
|
||||
auth_token="$(printf '%s' "$NETLIFY_AUTH_TOKEN" | tr -d '\r\n')"
|
||||
site_id="$(printf '%s' "$NETLIFY_SITE_ID" | tr -d '\r\n')"
|
||||
test -n "$auth_token" || { echo "::error::NETLIFY_AUTH_TOKEN is empty or missing"; exit 1; }
|
||||
test -n "$site_id" || { echo "::error::NETLIFY_SITE_ID is empty or missing"; exit 1; }
|
||||
|
||||
response="$(curl --fail-with-body --silent --show-error \
|
||||
-X POST \
|
||||
-H "Authorization: Bearer $auth_token" \
|
||||
-H "Content-Type: application/zip" \
|
||||
--data-binary "@build/inbe-site.zip" \
|
||||
"https://api.netlify.com/api/v1/sites/$site_id/deploys")"
|
||||
|
||||
python3 -c 'import json, sys; deploy = json.loads(sys.argv[1]); state = deploy.get("state", ""); url = deploy.get("ssl_url") or deploy.get("url") or deploy.get("deploy_ssl_url") or deploy.get("deploy_url") or deploy.get("id"); print(f"Netlify deploy {state}: {url}"); raise SystemExit(1 if state in ("error", "failed") else 0)' "$response"
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
@@ -0,0 +1,151 @@
|
||||
name: Cloudflare Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
# Refresh available downloads after a release; pushes deploy independently.
|
||||
workflow_run:
|
||||
workflows: [Release]
|
||||
types: [completed]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
released_web:
|
||||
description: Use the published web app for a website-only update
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
# A failed Release produces a skipped refresh, which must not cancel a push.
|
||||
group: pages-${{ github.ref }}-${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion != 'success' && 'skipped' || 'deploy' }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Site
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js for the web build
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Resolve published downloads
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
tag=$(gh api repos/waozixyz/inbe/releases/latest --jq .tag_name)
|
||||
version=${tag#v}
|
||||
python3 -c 'import re, sys; assert re.fullmatch(r"(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)", sys.argv[1]), "Invalid published release version"' "$version"
|
||||
echo "SITE_RELEASE_VERSION=$version" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Install Packages
|
||||
if: ${{ !inputs.released_web }}
|
||||
timeout-minutes: 15
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set Up Emscripten
|
||||
if: ${{ !inputs.released_web }}
|
||||
uses: ./.github/actions/emscripten
|
||||
|
||||
- name: Download Released Web App
|
||||
if: ${{ inputs.released_web }}
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
version="$SITE_RELEASE_VERSION"
|
||||
test -n "$version"
|
||||
mkdir -p build/released-web build/dist/web
|
||||
gh release download "v$version" --pattern inbe-web.zip --dir build/released-web
|
||||
unzip -q build/released-web/inbe-web.zip -d build/dist/web
|
||||
test -s build/dist/web/index.wasm
|
||||
|
||||
- name: Build Site
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ "$RELEASED_WEB" = "true" ]; then
|
||||
make package-unpackaged-assets
|
||||
sh site/build.sh
|
||||
else
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
node --version
|
||||
make build-laws
|
||||
make site
|
||||
fi
|
||||
test -f build/site/index.html
|
||||
test -f build/site/build/web/index.html
|
||||
test -f build/site/build/web/index.js
|
||||
test -f build/site/build/web/index.wasm
|
||||
if [ "$GITHUB_EVENT_NAME" != "pull_request" ]; then
|
||||
make site-release-assets-check
|
||||
else
|
||||
echo "Skipping release asset availability check for pull request build"
|
||||
fi
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
RELEASED_WEB: ${{ inputs.released_web }}
|
||||
|
||||
- name: Upload Site Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: inbe-site
|
||||
path: build/site
|
||||
if-no-files-found: error
|
||||
|
||||
deploy-preview:
|
||||
name: Deploy Preview
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: github.event_name == 'pull_request'
|
||||
|
||||
steps:
|
||||
- name: Download Site Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: inbe-site
|
||||
path: build/site
|
||||
|
||||
- name: Deploy Preview To Cloudflare Pages
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy build/site --project-name=inbe --branch=${{ github.head_ref || github.ref_name }} --commit-hash=${{ github.sha }}
|
||||
|
||||
deploy-production:
|
||||
name: Deploy Production
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
|
||||
|
||||
steps:
|
||||
- name: Download Site Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: inbe-site
|
||||
path: build/site
|
||||
|
||||
- name: Deploy Production To Cloudflare Pages
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy build/site --project-name=inbe --branch=master --commit-hash=${{ github.sha }}
|
||||
@@ -35,10 +35,18 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
lfs: true
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Scan Tracked Files and History
|
||||
run: |
|
||||
set -euo pipefail
|
||||
python3 scripts/check-secrets.py --working-tree
|
||||
python3 scripts/check-secrets.py --history
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
sudo dpkg --add-architecture arm64
|
||||
|
||||
@@ -14,9 +14,35 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
secret-scan:
|
||||
name: Secret Scan
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
with:
|
||||
save-toolchain: 'false'
|
||||
|
||||
- name: Check Version Consistency
|
||||
run: |
|
||||
python3 scripts/check-version.py
|
||||
python3 tests/version_test.py
|
||||
|
||||
- name: Scan Tracked Files and History
|
||||
run: |
|
||||
set -euo pipefail
|
||||
python3 scripts/check-secrets.py --working-tree
|
||||
python3 scripts/check-secrets.py --history
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: secret-scan
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
APT_CACHE_DIR: /tmp/apt-cache
|
||||
@@ -25,10 +51,17 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Test apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -56,10 +89,17 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Web apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -72,25 +112,14 @@ jobs:
|
||||
timeout-minutes: 15
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Set up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk" >> "$GITHUB_PATH"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
uses: ./.github/actions/emscripten
|
||||
|
||||
- name: Build Web ZIP
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
node --version
|
||||
make package-unpackaged-assets
|
||||
make web
|
||||
mkdir -p build/release/web
|
||||
@@ -115,10 +144,17 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Web apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -132,19 +168,13 @@ jobs:
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk" >> "$GITHUB_PATH"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
uses: ./.github/actions/emscripten
|
||||
|
||||
- name: Build Chrome Extension ZIP
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
node --version
|
||||
make package-unpackaged-assets
|
||||
make chrome-web-store
|
||||
mkdir -p build/release/chrome-web-store
|
||||
@@ -169,10 +199,17 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
lfs: true
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Web apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -185,25 +222,14 @@ jobs:
|
||||
timeout-minutes: 15
|
||||
run: .github/scripts/install-apt-packages.sh .github/apt/web-packages.txt
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Set up Emscripten
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
|
||||
"$HOME/emsdk/emsdk" install latest
|
||||
"$HOME/emsdk/emsdk" activate latest
|
||||
echo "EMSDK=$HOME/emsdk" >> "$GITHUB_ENV"
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk" >> "$GITHUB_PATH"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
uses: ./.github/actions/emscripten
|
||||
|
||||
- name: Build Firefox Add-on ZIP
|
||||
run: |
|
||||
set -euo pipefail
|
||||
export PATH="$INBE_NODE_BIN:$PATH"
|
||||
node --version
|
||||
make package-unpackaged-assets
|
||||
make firefox-addons
|
||||
make firefox-addons-lint
|
||||
@@ -239,9 +265,16 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Linux apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -340,9 +373,16 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Linux apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -393,9 +433,16 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Linux apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -446,9 +493,16 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Linux apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -496,9 +550,16 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Linux apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -526,47 +587,6 @@ jobs:
|
||||
path: build/release/linux/*
|
||||
if-no-files-found: error
|
||||
|
||||
build-freebsd:
|
||||
name: Build FreeBSD Package
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
needs: test
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Build FreeBSD .pkg
|
||||
uses: vmactions/freebsd-vm@v1
|
||||
with:
|
||||
release: "14.3"
|
||||
usesh: true
|
||||
prepare: |
|
||||
for attempt in 1 2 3; do
|
||||
pkg install -y gmake cmake pkgconf sdl2 gtk3 curl sqlite3 mesa-libs libdrm hicolor-icon-theme desktop-file-utils && break
|
||||
if [ "$attempt" -eq 3 ]; then
|
||||
exit 1
|
||||
fi
|
||||
pkg update -f
|
||||
sleep 10
|
||||
done
|
||||
run: |
|
||||
set -eu
|
||||
gmake package-freebsd
|
||||
mkdir -p build/release/freebsd
|
||||
find build/dist/freebsd -maxdepth 1 -type f -name '*.pkg' -exec cp {} build/release/freebsd/ \;
|
||||
test -n "$(find build/release/freebsd -type f -print -quit)"
|
||||
|
||||
- name: Upload FreeBSD Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: release-freebsd
|
||||
path: build/release/freebsd/*
|
||||
if-no-files-found: error
|
||||
|
||||
build-windows:
|
||||
name: Build Windows
|
||||
runs-on: ubuntu-latest
|
||||
@@ -579,9 +599,16 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Cache Windows apt packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -596,7 +623,7 @@ jobs:
|
||||
path: |
|
||||
vendor-builds/windows
|
||||
vendor-builds/sqlite
|
||||
key: windows-vendor-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile', 'vendor/kryon/mk/**', 'vendor/kryon/scripts/prepare-raylib-source.sh', 'vendor/kryon/tools/generate-kryon-compat.sh', 'vendor/kryon/vendor/raylib/src/**', 'vendor/kryon/vendor/curl/**', 'vendor/sqlite/**') }}
|
||||
key: windows-vendor-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Makefile', 'ziran.lock') }}
|
||||
restore-keys: |
|
||||
windows-vendor-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
@@ -608,9 +635,6 @@ jobs:
|
||||
if [ -x /usr/bin/x86_64-w64-mingw32-gcc-win32 ]; then
|
||||
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-win32
|
||||
fi
|
||||
if [ -x /usr/bin/i686-w64-mingw32-gcc-win32 ]; then
|
||||
sudo update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-win32
|
||||
fi
|
||||
|
||||
- name: Build Windows ZIP and Setup
|
||||
run: |
|
||||
@@ -637,9 +661,16 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Fetch Ziran packages
|
||||
uses: ./.github/actions/ziran-packages
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
@@ -668,7 +699,7 @@ jobs:
|
||||
path: |
|
||||
droid/app/.cxx
|
||||
droid/app/build/intermediates/cxx
|
||||
key: android-native-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('droid/app/src/main/cpp/CMakeLists.txt', 'droid/app/build.gradle', 'src/**/*.c', 'src/**/*.h', 'vendor/kryon/src/**/*.c', 'vendor/kryon/include/**/*.h', 'vendor/kryon/vendor/raylib/src/**') }}
|
||||
key: android-native-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('droid/app/src/main/cpp/CMakeLists.txt', 'droid/app/build.gradle', 'src/**/*.c', 'src/**/*.h', 'ziran.lock') }}
|
||||
restore-keys: |
|
||||
android-native-${{ runner.os }}-${{ runner.arch }}-
|
||||
|
||||
@@ -687,6 +718,11 @@ jobs:
|
||||
mkdir -p ~/.android
|
||||
echo "$KEYSTORE_BASE64" | base64 -d > ~/.android/inbe-release.keystore
|
||||
|
||||
- name: Prepare Firebase config
|
||||
env:
|
||||
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
|
||||
run: ./scripts/write-google-services-json.sh
|
||||
|
||||
- name: Copy Android Assets
|
||||
run: ./scripts/copy-android-assets.sh
|
||||
|
||||
@@ -697,12 +733,12 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
chmod +x droid/gradlew
|
||||
./droid/gradlew -p droid assembleRelease \
|
||||
./droid/gradlew -p droid assembleRelease assembleGplay \
|
||||
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
|
||||
-Pkeystore.alias="$KEY_ALIAS" \
|
||||
-Pkeystore.password="$KEYSTORE_PASSWORD" \
|
||||
--stacktrace
|
||||
./droid/gradlew -p droid bundleRelease \
|
||||
./droid/gradlew -p droid bundleGplay \
|
||||
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
|
||||
-Pkeystore.alias="$KEY_ALIAS" \
|
||||
-Pkeystore.password="$KEYSTORE_PASSWORD" \
|
||||
@@ -710,22 +746,31 @@ jobs:
|
||||
make android-copy-release-apks
|
||||
make android-copy-bundle
|
||||
|
||||
- name: Preserve Android Native Crash Symbols
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: android-native-symbols
|
||||
path: droid/app/build/intermediates/native_debug_metadata/**/out/**/*.dbg
|
||||
if-no-files-found: error
|
||||
retention-days: 90
|
||||
|
||||
- name: Collect Android Release Files
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir -p build/release/android
|
||||
VERSION=$(sed -n 's/^#define INBE_VERSION_STRING "\([^"]*\)".*/\1/p' src/core/version.h)
|
||||
VERSION=$(python3 scripts/check-version.py --print-version)
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Could not read INBE_VERSION_STRING"
|
||||
echo "Could not read APP_VERSION_STRING"
|
||||
exit 1
|
||||
fi
|
||||
cp "build/android/inbe-$VERSION.apk" build/release/android/
|
||||
aab="$(find droid/app/build/outputs/bundle/release build/android -type f -name '*.aab' | head -n 1)"
|
||||
if [ -z "$aab" ]; then
|
||||
echo "No release AAB was produced"
|
||||
exit 1
|
||||
fi
|
||||
cp "$aab" "build/release/android/inbe-$VERSION.aab"
|
||||
for apk in "build/android/inbe-$VERSION.apk" "build/android/inbe-$VERSION-gplay.apk"; do
|
||||
if [ ! -f "$apk" ]; then
|
||||
echo "Missing universal APK: $apk"
|
||||
exit 1
|
||||
fi
|
||||
cp "$apk" build/release/android/
|
||||
done
|
||||
cp "build/android/inbe-$VERSION-gplay.aab" build/release/android/
|
||||
|
||||
- name: Upload Android Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -747,7 +792,6 @@ jobs:
|
||||
- build-linux-rpm
|
||||
- build-linux-snap
|
||||
- build-linux-flatpak
|
||||
- build-freebsd
|
||||
- build-windows
|
||||
- build-android
|
||||
outputs:
|
||||
@@ -762,12 +806,6 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Checkout Kryon Appcast Tool
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git submodule update --init --depth 1 vendor/kryon
|
||||
test -f vendor/kryon/scripts/make_appcast.py
|
||||
|
||||
- name: Download Release Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@@ -779,9 +817,9 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
test -n "$(find build/release -type f -print -quit)"
|
||||
VERSION=$(sed -n 's/^#define INBE_VERSION_STRING "\([^"]*\)".*/\1/p' src/core/version.h)
|
||||
VERSION=$(python3 scripts/check-version.py --print-version)
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Could not read INBE_VERSION_STRING"
|
||||
echo "Could not read APP_VERSION_STRING"
|
||||
exit 1
|
||||
fi
|
||||
missing=0
|
||||
@@ -799,9 +837,9 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
VERSION=$(sed -n 's/^#define INBE_VERSION_STRING "\([^"]*\)".*/\1/p' src/core/version.h)
|
||||
VERSION=$(python3 scripts/check-version.py --print-version)
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Could not read INBE_VERSION_STRING"
|
||||
echo "Could not read APP_VERSION_STRING"
|
||||
exit 1
|
||||
fi
|
||||
TAG="v$VERSION"
|
||||
@@ -870,7 +908,7 @@ jobs:
|
||||
echo "no release artifacts found for the appcast"
|
||||
exit 1
|
||||
fi
|
||||
python3 vendor/kryon/scripts/make_appcast.py \
|
||||
python3 scripts/make_appcast.py \
|
||||
--version "$VERSION" \
|
||||
--base-url "$BASE" \
|
||||
--notes-url "https://github.com/waozixyz/inbe/releases/tag/$TAG" \
|
||||
@@ -890,10 +928,34 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
notify-waozi-site:
|
||||
name: Notify Waozi devlog
|
||||
runs-on: ubuntu-latest
|
||||
needs: release
|
||||
if: needs.release.outputs.release_upload == 'true'
|
||||
steps:
|
||||
- name: Trigger Waozi site rebuild
|
||||
env:
|
||||
WAOZI_SITE_DISPATCH_TOKEN: ${{ secrets.WAOZI_SITE_DISPATCH_TOKEN }}
|
||||
VERSION: ${{ needs.release.outputs.version }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [ -z "${WAOZI_SITE_DISPATCH_TOKEN:-}" ]; then
|
||||
echo "::warning::WAOZI_SITE_DISPATCH_TOKEN is not configured; skipping Waozi devlog dispatch"
|
||||
exit 0
|
||||
fi
|
||||
curl -fsS -X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer $WAOZI_SITE_DISPATCH_TOKEN" \
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
https://api.github.com/repos/waozixyz/waozi/dispatches \
|
||||
-d "{\"event_type\":\"devlog\",\"client_payload\":{\"project\":\"inbe\",\"version\":\"$VERSION\"}}"
|
||||
|
||||
publish-itch:
|
||||
name: Publish itch.io
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
continue-on-error: true
|
||||
needs:
|
||||
- build-web
|
||||
- release
|
||||
@@ -990,6 +1052,7 @@ jobs:
|
||||
name: Publish Google Play Production
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
continue-on-error: true
|
||||
needs:
|
||||
- build-android
|
||||
- release
|
||||
@@ -1017,7 +1080,7 @@ jobs:
|
||||
with:
|
||||
serviceAccountJsonPlainText: ${{ secrets.PLAY_STORE_JSON_KEY }}
|
||||
packageName: xyz.waozi.inbe
|
||||
releaseFiles: build/release/android/*.aab
|
||||
releaseFiles: build/release/android/inbe-${{ needs.release.outputs.version }}-gplay.aab
|
||||
track: production
|
||||
status: completed
|
||||
|
||||
@@ -1025,6 +1088,7 @@ jobs:
|
||||
name: Publish Amazon Appstore
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
continue-on-error: true
|
||||
needs:
|
||||
- build-android
|
||||
- release
|
||||
@@ -1078,6 +1142,7 @@ jobs:
|
||||
name: Publish Chrome Web Store
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
continue-on-error: true
|
||||
needs:
|
||||
- build-chrome-extension
|
||||
- release
|
||||
@@ -1203,6 +1268,7 @@ jobs:
|
||||
name: Publish Firefox Add-ons
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
continue-on-error: true
|
||||
needs:
|
||||
- build-firefox-addons
|
||||
- release
|
||||
@@ -1265,6 +1331,7 @@ jobs:
|
||||
name: Publish winget manifest
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
continue-on-error: true
|
||||
needs: release
|
||||
if: needs.release.outputs.tag_pushed == 'true'
|
||||
env:
|
||||
@@ -1300,6 +1367,6 @@ jobs:
|
||||
fi
|
||||
"$HOME/wingetcreate" update xyz.waozi.inbe \
|
||||
--version "$VERSION" \
|
||||
--urls "$SETUP_URL#x64" "$SETUP_URL#x86" \
|
||||
--urls "$SETUP_URL#x64" \
|
||||
--submit \
|
||||
--token "$WINGET_TOKEN"
|
||||
@@ -15,6 +15,7 @@
|
||||
.ccache
|
||||
*.wasm
|
||||
build/
|
||||
/output/
|
||||
tmp/
|
||||
vendor-builds/
|
||||
node_modules
|
||||
@@ -26,6 +27,7 @@ node_modules
|
||||
.env
|
||||
.env.play
|
||||
.secrets/
|
||||
social-posts.local.json
|
||||
/inbe.log
|
||||
|
||||
|
||||
@@ -35,6 +37,7 @@ node_modules
|
||||
/main
|
||||
!droid/app/src/main
|
||||
droid/app/src/main/assets
|
||||
droid/app/src/gplay/google-services.json
|
||||
droid/*.apk
|
||||
droid/*.aab
|
||||
|
||||
@@ -68,3 +71,12 @@ __pycache__/
|
||||
|
||||
/pro/
|
||||
.kotlin/
|
||||
ziran.local.toml
|
||||
|
||||
# Sun salutation reference videos and frames, and check images; the
|
||||
# renderers write their videos and frames under build/.
|
||||
design/sun-salutation/*/reference.mp4
|
||||
design/sun-salutation/*/reference-*.png
|
||||
design/sun-salutation/generated-video-cut/source.mp4
|
||||
design/sun-salutation/girl-parts/head-layers-check.png
|
||||
.wrangler/
|
||||
@@ -1,9 +0,0 @@
|
||||
[submodule "vendor/rini"]
|
||||
path = vendor/rini
|
||||
url = https://github.com/raysan5/rini.git
|
||||
[submodule "vendor/sqlite"]
|
||||
path = vendor/sqlite
|
||||
url = https://github.com/sqlite/sqlite
|
||||
[submodule "vendor/kryon"]
|
||||
path = vendor/kryon
|
||||
url = https://github.com/kryonlabs/kryon.git
|
||||
@@ -1,7 +1,69 @@
|
||||
# Inbe Agent Instructions
|
||||
# Inbe repository rules
|
||||
|
||||
- Never edit files under `vendor/` from this repository.
|
||||
- Kryon changes must be made in the core Kryon repository, committed there, pushed there, and then brought into Inbe by updating the Kryon submodule pointer.
|
||||
- Do not add tests, policy checks, wrappers, compatibility aliases, or generated changes inside `vendor/` from Inbe.
|
||||
- If a task appears to require a vendor change, stop and switch to the upstream project workflow first.
|
||||
- Run `make no-vendor-edits` or `make test` before handing work back when a task touches Kryon or other vendored code.
|
||||
## Ownership and releases
|
||||
|
||||
- Dependencies are Ziran packages pinned in `ziran.toml`/`ziran.lock` and
|
||||
linked under `build/packages/`; there is no `vendor/`. Never edit a package
|
||||
checkout. Change Kryon (or any dependency) in its own repository on `master`,
|
||||
commit and push there, then run `ziran update NAME` here and commit
|
||||
`ziran.lock`. Run `make package-check` after dependency changes. For local
|
||||
debugging, map a package to a working repository in the ignored
|
||||
`ziran.local.toml`; release builds use `PACKAGE_FLAGS=--locked`.
|
||||
- Add the numeric release to `CHANGELOG.md`, then run `./update_version.sh`.
|
||||
The canonical macros are `APP_VERSION_STRING`, `APP_VERSION_MAJOR`,
|
||||
`APP_VERSION_MINOR`, and `APP_VERSION_PATCH`; do not create aliases.
|
||||
Only the GitHub Actions release workflow creates or pushes release tags.
|
||||
- Translate changed strings in every affected locale; no English placeholders.
|
||||
- `make locale-translated-test` fails on any locale string that still equals
|
||||
its English text. Translate it; add it to `tests/locale_same_as_english.txt`
|
||||
only when it is a real brand name, loanword, or format string.
|
||||
|
||||
## Machine-checked contracts
|
||||
|
||||
- `make build-laws` is mandatory for native, web, and Windows artifacts;
|
||||
Gradle and CMake enforce the same version and proof checks independently.
|
||||
Never bypass a failed gate.
|
||||
- Laws are Ziran `#law` obligations checked by `ziran check`. Retry behavior
|
||||
lives in `src/app/sync_retry.zi` with its laws in `sync_retry_laws.zi`;
|
||||
private-data names live in `src/storage/storage_layout.zi` with laws in
|
||||
`storage_layout_laws.zi`. Change the implementation freely, but do not
|
||||
weaken laws to make an implementation pass. Contract changes require
|
||||
explicit product intent and separate review from implementation changes.
|
||||
- Run `make proof-test sync-recovery-test version-test` for these contracts.
|
||||
Coverage, trust boundaries, and the next proof migrations are described in
|
||||
[docs/build-laws-plan.md](docs/build-laws-plan.md).
|
||||
|
||||
## Public UI and sync boundaries
|
||||
|
||||
- Use current Kryon calls `Text(session, TextProps)`,
|
||||
`Image(session, ImageProps)`, and `Button(session, ButtonProps)` directly.
|
||||
Semantic images use the same `Image` surface. No positional Text, legacy
|
||||
drawing calls, alternate widgets, or thin local forwarding wrappers.
|
||||
Keep meaningful compositions and gestures; use standard Checkbox and Toggle.
|
||||
Run `make clean-text-api-check button-api-check` for UI changes.
|
||||
- If a required widget capability is missing, implement the reusable primitive
|
||||
upstream first. Do not work around it in Inbe or generated code.
|
||||
- Use sync protocol v6 and the clean Kryon API; no new `Ksync` names or wrappers.
|
||||
Remove old wire projections and format fallbacks as the storage and sync
|
||||
modules are converted to current Ziran. Keep the current protocol and data
|
||||
model in Inbe rather than adding compatibility adapters.
|
||||
- Keep on-disk schema and user-data upgrade paths. Convert their implementation
|
||||
to checked Ziran; do not delete a migration merely because it handles an old
|
||||
database. An upgrade must preserve existing data, and its replacement needs
|
||||
a test using an older database fixture before the prior path is removed.
|
||||
- A `.zi` filename is not a completed migration. All owned application
|
||||
behavior, including storage upgrades, must compile as current Ziran. Prefer
|
||||
direct Ziran foreign imports for native libraries; migrate owned C adapters
|
||||
as Ziran gains the required ABI support. Never keep application policy in C.
|
||||
|
||||
## Product behavior and readability
|
||||
|
||||
- Desktop focus loss must not pause practices, freeze animation, suppress
|
||||
updates, or enter the mobile background-timer path. Preserve mobile/web
|
||||
lifecycle handling and explicit user pause as separate behavior.
|
||||
- Preserve hover, press, and focus transitions. Session audio controls have
|
||||
44-unit targets (24-unit icons plus 10-unit padding), scaled and spaced.
|
||||
- Lists starts with list tabs, without a separate title bar or dropdown.
|
||||
- Use descriptive names, explicit control flow, and focused helpers. Never
|
||||
compress multiple statements, branches, declarations, or checks onto one line.
|
||||
Format changed source, inspect the final diff, and run `git diff --check`.
|
||||
@@ -1,4 +1,208 @@
|
||||
# Changelog
|
||||
## [2.0.9] - 2026-10-02
|
||||
### Added
|
||||
- Choose between four painted Sun Salutation characters in Customize. Your choice is saved and appears in the practice, pose previews, and guide.
|
||||
|
||||
### Changed
|
||||
- Replaced the previous Sun Salutation character with the four banner-inspired designs. The men wear distinct rust-and-charcoal and indigo-and-sand outfits.
|
||||
|
||||
## [2.0.8] - 2026-10-02
|
||||
### Fixed
|
||||
- Fixed an Android startup crash after upgrading from older versions, while preserving saved preferences and practice history.
|
||||
- Keep drawing the app when a device cannot allocate the graphics buffers used for screen transitions.
|
||||
- Show the selected breathing speed, round count, breath count, and pause duration in Wim Hof customization.
|
||||
- Keep the progressive start-speed editor's preview and slider visible.
|
||||
|
||||
## [2.0.7] - 2026-10-01
|
||||
### Added
|
||||
- Mini mode provides a compact practice window without changing your saved window or navigation settings.
|
||||
- Habits now have separate overview, statistics, and edit pages, with a dialog for recording daily counts and clearer week and month calendars.
|
||||
|
||||
### Changed
|
||||
- Prebuilt FreeBSD packages are temporarily unavailable.
|
||||
- Sun Salutation now uses a painted character with smooth movement through all twelve poses, consistent proportions, and clean transitions without crossfading.
|
||||
- Practice customization and guides use the full screen, and Sun Salutation shows a simple seconds counter without the distracting progress bar.
|
||||
- Improved phone performance, touch responsiveness, text sizing, and Japanese and Chinese text wrapping.
|
||||
- Refined Settings, Profile, Lists, habit cards, session controls, and mood check-in buttons. Desktop users can zoom with Ctrl and the mouse wheel.
|
||||
|
||||
### Fixed
|
||||
- Music keeps playing when you switch tabs inside the app or leave practice customization.
|
||||
- Restored sound and music playback in the web app.
|
||||
- Appearance dropdown menus stay above the Layout card and other settings, keeping every option visible and selectable.
|
||||
- Practice Customize and How-to actions now open the correct pages, and carousel swipes reliably change practices.
|
||||
- Animated screens keep their controls visible, and navigation transitions finish before accepting the next action.
|
||||
- Habit statistics no longer crash, and saved habit counts and imported records are retained correctly.
|
||||
- Opening a habit card keeps your place in the list instead of scrolling back to the top.
|
||||
- Habit day counts sit centered inside each circle, in a color that stays readable on every habit color.
|
||||
- Deleted sync records stay deleted across devices, and restoring an account preserves local changes waiting to sync.
|
||||
- Web and browser add-on text stays sharp at different text sizes, display scales, and zoom levels with the Canvas renderer.
|
||||
- Cancel reliably closes the exit-session dialog without interrupting the practice.
|
||||
|
||||
## [2.0.6] - 2026-09-22
|
||||
### Fixed
|
||||
- Selected app color themes now keep their backgrounds, cards, and text visible. Theme catalogs are included in every build, and an unavailable palette falls back to readable built-in colors.
|
||||
|
||||
## [2.0.5] - 2026-09-21
|
||||
### Changed
|
||||
- Session details now show the practice name, time, and round count above clearly separated round rows with larger hold times and easier-to-tap edit and delete actions. Editing a round highlights its value and provides a labeled number pad with separate Cancel and Save actions.
|
||||
|
||||
## [2.0.4] - 2026-09-21
|
||||
### Changed
|
||||
- The account screen shows the connected alias, automatic sync progress, and counts for habits, history days, sessions, friends, lists, and list items.
|
||||
- Habits show a distinct mark for days completed through a practice session.
|
||||
- Importing an account key offers Merge or Replace before changing local data, with clear details about each choice.
|
||||
- Profile offers Connect Account, and the sync screen offers Import .key when no account is connected.
|
||||
|
||||
### Fixed
|
||||
- Restoring an existing account now retrieves its username, friends, habits, history, and sessions from the complete account data.
|
||||
- Lists and their items now sync across devices, including completed items and changes made on another device.
|
||||
- Sync status shows the current upload or restore step instead of staying on a generic syncing message.
|
||||
- Connecting an account starts automatic sync without leaving a stale status message behind.
|
||||
|
||||
## [2.0.3] - 2026-09-20
|
||||
### Fixed
|
||||
- Web and browser builds can connect to compatible custom sync servers when you choose one.
|
||||
- Browser extensions no longer request access to the Inner Breeze website.
|
||||
- Chrome break reminders now follow the app's settings and Rest Now action.
|
||||
|
||||
## [2.0.2] - 2026-09-20
|
||||
### Fixed
|
||||
- Habit editor section headings and reminder details now align with their rows.
|
||||
|
||||
## [2.0.1] - 2026-09-20
|
||||
### Fixed
|
||||
- Existing installations reset navigation once to show Lists, Habits, Practice, and Settings in that order. Changes made afterward are kept.
|
||||
|
||||
## [2.0.0] - 2026-09-19
|
||||
### Changed
|
||||
- Added cat, sea turtle, and crescent moon profile pictures in place of three similar tree choices.
|
||||
- Added the new peaceful meditation logo and made it the default app icon, with app icon selection available from Appearance.
|
||||
- Updated Kryon controls, navigation, styling, and text editing throughout the app.
|
||||
- Material is now the default style. Choose Material, TK, or Lightfield in Appearance, with color themes available within each style.
|
||||
- Navigation customization has cleaner spacing and smoother reorder handles.
|
||||
- Desktop development runs keep their settings and sync account separate from the installed app.
|
||||
- Completed list items now move behind a Show Completed toggle instead of staying mixed into the active list.
|
||||
- Practice controls sit closer to the bottom navigation while preserving the image fade.
|
||||
- Session results now show a clearer round chart and a compact summary for single-round practices.
|
||||
- About now uses proper Discord, Telegram, and GitHub icons, and the support dialog has cleaner donation address previews.
|
||||
- Removed the Vanilla style and the startup style-selection screen.
|
||||
|
||||
### Fixed
|
||||
- Existing Android installations now move their private data to the consistent Inner Breeze location while preserving habits, sessions, settings, and sync details.
|
||||
- Desktop, web, and Windows installations now use the same Inner Breeze data location, moving existing data there on first launch instead of leaving it behind.
|
||||
- Backups exported by earlier releases import again, including archives named after the previous app identity.
|
||||
- Restored profile pictures in Settings and Profile. The picture picker now displays its full grid and uses standard scrolling and selection.
|
||||
- Settings row labels and icons now share the same vertical alignment.
|
||||
- Settings now uses one consistent modern screen instead of switching between duplicate layouts.
|
||||
- Sidebar switching is stable at responsive breakpoints instead of jittering between navigation modes.
|
||||
- Guide and modal panels remain visible with Material styling instead of showing text over the underlying screen.
|
||||
- Guide screens and practice previews are placed correctly across phone and desktop sizes.
|
||||
- Guide cards now have a clear heading, and tapping outside a focused control dismisses its focus.
|
||||
- Scrollable Settings pages leave comfortable space above the bottom navigation at larger text scales.
|
||||
- An unnamed local profile now has a neutral label in the navigation card.
|
||||
- Settings navigation opens the Settings overview, with improved bottom navigation and click handling.
|
||||
- Older navigation layouts now place Lists before Habits, Practice, and Settings.
|
||||
- Lightfield buttons and glow settings now update with the selected style, and glow is scoped to styles that support it.
|
||||
- Material sliders keep labels and values readable instead of floating too high or drawing white text on pale slider fills.
|
||||
- Android masked app icons use a gentle blue background instead of black.
|
||||
- Web loading screens and browser icons now show the current meditation logo.
|
||||
- Emptying a list no longer restores the initial sample data.
|
||||
- Improved text selection, keyboard focus, and composition handling when editing text.
|
||||
- Connecting to sync runs in the background so network requests do not block the interface.
|
||||
- Sync retries temporary connection failures automatically without losing queued changes.
|
||||
- Automatic friend-list retries stop when account details need attention, and retry delays recover safely from invalid saved counts.
|
||||
- Profile shows actionable sync status instead of internal repair messages.
|
||||
- Restoring an account key now starts synchronization and retrieves the account alias and existing friendships. Friend lists remain available when leaderboard loading fails.
|
||||
- Restoring a profile now reliably recovers habit history and session data alongside the alias and friends, including on Android.
|
||||
- Sync no longer asks you to upgrade just because the server supports a newer sync protocol.
|
||||
- Sync connection and account errors now display readable, translated messages.
|
||||
- Desktop update links now use the current Inner Breeze release location.
|
||||
|
||||
## [1.9.19] - 2026-09-04
|
||||
### Added
|
||||
- Replaced the legacy pixel UI icons with a cohesive MingCute-based icon set, packed into efficient embedded spritesheets with separate full-color assets for profiles, platforms, payments, languages, and logos.
|
||||
|
||||
### Changed
|
||||
- Navigation and practice controls now use larger, clearer icons.
|
||||
- Volume controls now show distinct muted, low, medium, and maximum-volume states.
|
||||
- Updated the bundled Kryon runtime with smoother antialiasing, tear-free presentation, improved text editing, and more reliable desktop menus.
|
||||
|
||||
### Fixed
|
||||
- Pressing Escape now closes stack/sidebar navigation before applying the normal screen-level Escape action.
|
||||
- Fixed a Windows build collision between Kryon and the Win32 `DrawIcon` API.
|
||||
|
||||
## [1.9.18] - 2026-09-04
|
||||
### Added
|
||||
- Every practice now includes a guided How-to with clear steps, swipe navigation, and labeled controls.
|
||||
|
||||
### Changed
|
||||
- The Wim Hof guide now uses four focused pages with a prominent safety warning, breathing previews, progress indicators, and direct access to practice settings.
|
||||
- How-to controls now provide consistent hover, focus, keyboard, and touch feedback across supported devices.
|
||||
|
||||
### Fixed
|
||||
- Exiting a practice started from How-to now returns to the normal Practice screen instead of reopening the guide.
|
||||
- On Windows, the title-bar close button and Alt+F4 now honor the selected close behavior, including showing the Keep running or Quit prompt.
|
||||
|
||||
## [1.9.17] - 2026-08-30
|
||||
### Changed
|
||||
- Web habit check-ins now update more smoothly, reducing the visible flash when changing a habit.
|
||||
|
||||
### Fixed
|
||||
- Web screen navigation now keeps stable browser routes, so opening or returning to a screen uses the expected address.
|
||||
- Language selection and onboarding settings now persist reliably before returning to the main screen.
|
||||
- Stack sidebar navigation no longer shows a stray black line or overflows at the bottom.
|
||||
|
||||
## [1.9.16] - 2026-08-29
|
||||
### Changed
|
||||
- Sync remains compatible with existing secure account keys and synced data.
|
||||
|
||||
### Fixed
|
||||
- Fixed web sync key import stability in Firefox.
|
||||
|
||||
## [1.9.15] - 2026-08-29
|
||||
### Fixed
|
||||
- Fixed a web startup stability issue that could affect browser smoke checks after reload.
|
||||
|
||||
## [1.9.14] - 2026-08-29
|
||||
### Changed
|
||||
- Updated the bundled Kryon runtime to the latest release for improved web runtime compatibility.
|
||||
|
||||
## [1.9.13] - 2026-08-29
|
||||
### Changed
|
||||
- Sync now uses the protocol v4 secure data format when the account has been migrated, while keeping the transition path compatible with existing synced data.
|
||||
|
||||
### Fixed
|
||||
- Secure data migration now appears only for connected accounts that still need migration, and shows progress while the update is running.
|
||||
- Sync migration no longer leaves stale queued changes after all local data has been uploaded in the secure format.
|
||||
- Profile and sync account text can be selected by double-clicking.
|
||||
- Desktop startup no longer fails when the single-instance lock is unavailable.
|
||||
- Android landscape layouts now respect system bars and display cutouts.
|
||||
- Android releases now include the expected per-ABI APK downloads alongside the universal APK.
|
||||
|
||||
## [1.9.12] - 2026-08-28
|
||||
### Changed
|
||||
- Web builds now use the Canvas renderer directly, so browsers without WebGL no longer need a fallback path.
|
||||
- Sync account IDs now display in a compact first-four/last-four format in profile and sync settings.
|
||||
|
||||
### Fixed
|
||||
- Importing a sync key now connects the account automatically once the key is accepted.
|
||||
- Background sync no longer blocks or interrupts starting a practice.
|
||||
- Start Practice now remains responsive while sync is running in the background.
|
||||
- Profile and sync account text can be selected reliably with double-click and drag selection.
|
||||
- Web console output is quieter during normal startup and sync.
|
||||
- Android UI scaling now uses the best detected device scale, fixing undersized menu text on tall phones.
|
||||
|
||||
## [1.9.11] - 2026-08-28
|
||||
### Changed
|
||||
- Practice screens now show only the practices that are currently available.
|
||||
- Desktop tray status now shows the active practice and phase in the tooltip where supported, and in the tray menu as a reliable fallback.
|
||||
|
||||
### Fixed
|
||||
- Sync now runs only after an account is connected to a saved sync server.
|
||||
- Existing synced accounts keep their connected state after upgrading, while disconnected accounts no longer start background sync, social refreshes or websocket listeners.
|
||||
- Profile Data now distinguishes disconnected sync accounts from missing accounts.
|
||||
- Android practice notifications now keep showing the current phase and timer while a practice is running.
|
||||
|
||||
## [1.9.10] - 2026-08-25
|
||||
### Added
|
||||
- Completed practices now show a results screen with session details and a mood check-in before returning home.
|
||||
@@ -113,7 +317,7 @@
|
||||
|
||||
### Changed
|
||||
- Micro breaks open their window the moment they are due - the invisible toast-prompt phase is gone (rest/daily keep their prompts).
|
||||
- Break exercises are removed for now: breaks are just the countdown and controls; the "Exercises" settings row and the tray entry are gone. Running a practice during a break is planned as the follow-up.
|
||||
- Breaks are just the countdown, controls and practice launch actions; the old Exercises settings row and tray entry are gone.
|
||||
- Idle memory: source fonts now rasterize once each at the DPI-scaled base size (plus one lazily built tier for large text) instead of caching up to eight per-size rasterizations, and a burst of new glyphs re-rasterizes at most once per frame per font; language-picker fallback fonts seed ASCII only and grow on demand (kryon `ui_text` change).
|
||||
- The process no longer links GTK: the system theme reads the desktop's real palette from the theme's gtk.css (kryon `system_theme`), file dialogs shell out to zenity/kdialog/yad (kryon's default backend order), and the GTK tray backend resolves libgtk-3 through kryon's runtime loader only when the tray actually starts. `INBE_NO_TRAY=1` skips the tray entirely (idle RSS drops from ~132 MB to ~103 MB; with the tray it is ~126 MB).
|
||||
- glibc malloc arenas are capped at four (the app runs ~19 threads; the default ceiling let per-thread arenas inflate idle RSS).
|
||||
@@ -129,7 +333,7 @@
|
||||
|
||||
## [1.9.0] - 2026-08-15
|
||||
### Added
|
||||
- Break reminders, Workrave-style: micro, rest and daily break timers with break exercises, statistics, and a desktop timer HUD that lives as a real OS window next to the app (desktop only, off by default, with its own settings tab).
|
||||
- Break reminders, Workrave-style: micro, rest and daily break timers with statistics and a desktop timer HUD that lives as a real OS window next to the app (desktop only, off by default, with its own settings tab).
|
||||
- A dedicated Notifications settings tab. Push delivery uses UnifiedPush (no Google services): "Set up push" opens an in-app picker that lists installed distributor apps with their name and icon and registers with the one you pick; the status line reports the real registration state.
|
||||
- Reminders are an editable list: add as many as you want, each with a practice dropdown (Wim Hof, Meditation, Sun Salutation), a [-] time [+] stepper, an on/off toggle and delete. Ships with one enabled Wim-Hof 08:00 reminder.
|
||||
- A notification when new friend requests arrive over social sync (toggleable, on by default).
|
||||
|
||||
@@ -1,195 +1,109 @@
|
||||
<p align="center">
|
||||
<img src="assets/app/readme-banner.png" alt="Inner Breeze" width="100%">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://play.google.com/store/apps/details?id=xyz.waozi.inbe">
|
||||
<img src="assets/app/badge-google-play.png" alt="Get it on Google Play" height="56">
|
||||
</a>
|
||||
<a href="https://f-droid.org/packages/xyz.waozi.inbe/">
|
||||
<img src="assets/app/badge-f-droid.png" alt="Get it on F-Droid" height="56">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
# Inner Breeze
|
||||
|
||||
Inner Breeze is a free, open-source app for breathing, meditation, and habit tracking.
|
||||
Inner Breeze is a free, open-source practice app for breathing, meditation, and
|
||||
habit tracking. It works offline, stores data locally in SQLite, and can
|
||||
optionally sync user-owned data through a Daochi-compatible sync server.
|
||||
|
||||
## Features
|
||||
|
||||
- Guided practice sessions with visual and audio cues
|
||||
- Mind, Yoga, and Fitness organization for different practice routines
|
||||
- Customizable breathing sessions, meditation timers, and habit counters
|
||||
- Habit tracking with session history and linked practice counts
|
||||
- Local import and export support
|
||||
- Theme customization with light and dark variants
|
||||
- Repeat the last completed practice using its current settings
|
||||
|
||||
## Build
|
||||
|
||||
Build with the system toolchain and project Makefile:
|
||||
The build checks Inbe's laws with the Ziran compiler (`ziran check`); no
|
||||
separate proof tool is needed. The build host needs Python 3 and the platform's
|
||||
native build dependencies. See [build laws](docs/build-laws-plan.md) for the
|
||||
checked behavior.
|
||||
|
||||
Initialize the submodules once:
|
||||
|
||||
```bash
|
||||
git submodule update --init --recursive
|
||||
```
|
||||
|
||||
Build and run the desktop app:
|
||||
|
||||
```bash
|
||||
make native
|
||||
make run
|
||||
```
|
||||
|
||||
On FreeBSD, use GNU Make:
|
||||
Run the terminal backend:
|
||||
|
||||
```bash
|
||||
gmake native
|
||||
gmake run
|
||||
make tui
|
||||
```
|
||||
|
||||
To debug Inbe against the root Kryon checkout instead of the vendored
|
||||
submodule, override `KRYON_DIR`:
|
||||
|
||||
```bash
|
||||
make run KRYON_DIR=../kryon
|
||||
```
|
||||
|
||||
On FreeBSD:
|
||||
|
||||
```bash
|
||||
gmake run KRYON_DIR=../kryon
|
||||
```
|
||||
|
||||
Use this only for local debugging. Permanent Kryon fixes should be committed in
|
||||
the root Kryon repository and then brought into Inbe by updating
|
||||
`vendor/kryon`.
|
||||
|
||||
Native binaries are written to `build/bin/<platform>/`, for example
|
||||
`build/bin/freebsd/inbe-freebsd-x86_64` on FreeBSD.
|
||||
|
||||
Install into the system prefix:
|
||||
|
||||
```bash
|
||||
make install
|
||||
```
|
||||
|
||||
By default this installs the binary, desktop entry, icon, and AppStream
|
||||
metadata under `/usr/local`. Use `DESTDIR` for staged/package installs, or
|
||||
`PREFIX` to choose another install root.
|
||||
|
||||
Install for only the current user:
|
||||
|
||||
```bash
|
||||
make install-user
|
||||
```
|
||||
|
||||
This installs under `~/.local`, including the desktop entry and icon.
|
||||
|
||||
## FreeBSD Package
|
||||
|
||||
Build a native FreeBSD package from inside the repo:
|
||||
|
||||
```bash
|
||||
gmake package-freebsd
|
||||
```
|
||||
|
||||
The package is written to `build/dist/freebsd/`, for example:
|
||||
|
||||
```bash
|
||||
build/dist/freebsd/inbe-1.8.3-freebsd-x86_64.pkg
|
||||
```
|
||||
|
||||
Install it with FreeBSD `pkg`:
|
||||
|
||||
```bash
|
||||
sudo pkg install -y ./build/dist/freebsd/inbe-1.8.3-freebsd-x86_64.pkg
|
||||
```
|
||||
|
||||
The package installs the `inbe` command plus desktop integration for menus such
|
||||
as Xfce: `Inner Breeze` appears from the `.desktop` file, uses the bundled icon,
|
||||
and includes AppStream metadata.
|
||||
|
||||
## Other Targets
|
||||
|
||||
General:
|
||||
|
||||
```bash
|
||||
make test
|
||||
make dist
|
||||
make clean
|
||||
```
|
||||
|
||||
Native desktop:
|
||||
|
||||
```bash
|
||||
make native
|
||||
make run
|
||||
make install-user
|
||||
make uninstall
|
||||
```
|
||||
|
||||
FreeBSD:
|
||||
|
||||
```bash
|
||||
gmake package-freebsd
|
||||
```
|
||||
|
||||
Android:
|
||||
Build Android artifacts:
|
||||
|
||||
```bash
|
||||
make android-debug
|
||||
make android-release
|
||||
make android-bundle
|
||||
PASSWORD=your-keystore-password make android-release
|
||||
PASSWORD=your-keystore-password make android-bundle
|
||||
```
|
||||
|
||||
Web:
|
||||
Build the web app:
|
||||
|
||||
```bash
|
||||
make web
|
||||
make site
|
||||
make chrome-web-store
|
||||
make firefox-addons
|
||||
```
|
||||
|
||||
Firefox add-on source-review build:
|
||||
Run the test suite:
|
||||
|
||||
```bash
|
||||
sh scripts/build-firefox-addons-source.sh
|
||||
make test
|
||||
```
|
||||
|
||||
The Firefox reviewer build script creates `build/dist/inbe-firefox-addons.zip`
|
||||
and runs Mozilla `addons-linter`. Environment requirements and step-by-step
|
||||
reviewer notes are documented in `packaging/firefox-addons/README.md`.
|
||||
|
||||
Firefox source upload zip:
|
||||
To test sync and recovery against an isolated local server:
|
||||
|
||||
```bash
|
||||
make firefox-addons-source-zip
|
||||
make sync-server-test DAOCHI_BIN=/absolute/path/to/daochi
|
||||
```
|
||||
|
||||
This creates `build/dist/inbe-firefox-addons-source.zip`.
|
||||
This uses disposable client databases and a loopback server; see
|
||||
[web and sync test coverage](WEB_RENDERER_TESTS.md) for details.
|
||||
|
||||
Linux:
|
||||
Native binaries are written to `build/bin/<platform>/`. Release artifacts are
|
||||
written under `build/dist/`.
|
||||
|
||||
```bash
|
||||
make appimage
|
||||
Dependencies, including Kryon and the Ziran toolchain, are pinned in
|
||||
`ziran.lock`. `make` fetches them into the Ziran package cache and links them
|
||||
under `build/packages/`; `sh scripts/packages.sh` does the same by hand.
|
||||
Builders that supply the sources themselves need no network: put Git checkouts
|
||||
containing the locked commits (including Kryon's `raylib` submodule) in
|
||||
`$ZIRAN_PACKAGE_SOURCES`, or declare them as F-Droid srclibs, which are found
|
||||
in `../srclib` automatically.
|
||||
|
||||
To debug Inbe against the root Kryon checkout, map it in an ignored
|
||||
`ziran.local.toml`:
|
||||
|
||||
```toml
|
||||
[overrides]
|
||||
kryon = "../../kryonlabs/kryon"
|
||||
```
|
||||
|
||||
Ubuntu Touch:
|
||||
|
||||
```bash
|
||||
make click
|
||||
```
|
||||
|
||||
Windows:
|
||||
|
||||
```bash
|
||||
make windows
|
||||
```
|
||||
|
||||
Common outputs:
|
||||
|
||||
- `make native` builds `build/bin/<platform>/inbe-<platform>-<arch>`.
|
||||
- `make appimage` builds a Linux AppImage under `build/dist/linux/`.
|
||||
- `make web` builds and smoke-tests the web app, then writes `build/dist/inbe-web.zip`.
|
||||
- `make windows` builds 64-bit and 32-bit Windows binaries and writes a zip under `build/dist/windows/`.
|
||||
- `make click` builds the Ubuntu Touch Click package under `build/dist/click/`.
|
||||
- `make dist` builds release artifacts; Android release targets require `PASSWORD`.
|
||||
|
||||
## Android
|
||||
|
||||
Build a debug APK:
|
||||
|
||||
```bash
|
||||
make android-debug
|
||||
```
|
||||
|
||||
Create and launch an Android 17/API 37.1 AVD for Pixel storage testing:
|
||||
|
||||
```bash
|
||||
ANDROID_API=37.1 bash scripts/create-avd.sh inbe-android-37-1
|
||||
AVD_NAME=inbe-android-37-1 bash scripts/emulator.sh
|
||||
```
|
||||
|
||||
Android 17 system images are listed by Google as `android-37.0`,
|
||||
`android-37.1`, and `android-CinnamonBun`. The repo AVD script supports the
|
||||
16 KB page-size image types such as `google_apis_playstore_ps16k`.
|
||||
|
||||
Native Android storage must use the app's private internal data directory from
|
||||
`ANativeActivity->internalDataPath`, not the process working directory. Inbe's
|
||||
SQLite database lives under that app-private root and is removed when the app is
|
||||
uninstalled.
|
||||
Use this only for local debugging. Permanent Kryon fixes should be committed in
|
||||
the root Kryon repository and then brought into Inbe with `ziran update kryon`.
|
||||
|
||||
## Project Layout
|
||||
|
||||
@@ -198,12 +112,7 @@ uninstalled.
|
||||
- `locales/` - translations
|
||||
- `droid/` - Android project
|
||||
- `site/` - website
|
||||
- `vendor/kryon/` - Kryon UI/runtime submodule
|
||||
|
||||
## Notes
|
||||
|
||||
Inbe stores app data locally in SQLite. Optional sync can mirror user-owned
|
||||
data through a Ksync-compatible sync server.
|
||||
- `ziran.toml`, `ziran.lock` - pinned Ziran toolchain and dependencies
|
||||
|
||||
## Support
|
||||
|
||||
|
||||
@@ -1,31 +1,37 @@
|
||||
# Web Renderer Tests
|
||||
|
||||
Inbe has two web renderer paths:
|
||||
Inbe ships the Kryon Canvas2D renderer. `web-canvas` is an alias for `web`.
|
||||
|
||||
| Target | Renderer | Purpose |
|
||||
|---|---|---|
|
||||
| `make web` | raylib/WebGL | Shipping web build with liboqs sync support. |
|
||||
| `make web-canvas` | Kryon Canvas2D | No-WebGL fallback build using Kryon's Canvas backend. The app still uses Emscripten/WASM for C code and support libraries. |
|
||||
| `make web-compare-test` | both | Builds both renderers and runs the browser smoke suite against each. |
|
||||
| `make web-side-by-side-test` | both | Builds both renderers, runs both smoke tests, then serves a split-page manual comparison view. |
|
||||
| `make web` | Kryon Canvas2D | Shipping Emscripten/WASM build with liboqs sync support; WebGL is not required. |
|
||||
| `make web-canvas` | Kryon Canvas2D | Alias for the shipping web build. |
|
||||
| `make web-compare-test` | Kryon Canvas2D | Builds the web target and runs its smoke suite. |
|
||||
| `make web-side-by-side-test` | Kryon Canvas2D | Builds, tests, and serves a preview page. |
|
||||
|
||||
The shared smoke test is `scripts/web-smoke-test.mjs`. It is renderer-aware:
|
||||
The shared smoke test is `scripts/web-smoke-test.mjs`:
|
||||
|
||||
- `WEB_SMOKE_RENDERER=raylib` requires a live WebGL context.
|
||||
- `WEB_SMOKE_RENDERER=canvas` requires a live Canvas2D context and nonblank pixels.
|
||||
- Both paths require the app runtime-ready hook, a cycling render loop, IDBFS idle/flush behavior, and app settings persistence.
|
||||
- Both paths require sync-key import to work. Canvas links the same ksync/liboqs account crypto as raylib-web; only the renderer differs.
|
||||
- It requires the app runtime-ready hook, a cycling render loop, IDBFS idle/flush behavior, and app settings persistence.
|
||||
- It verifies sync-key import, practice startup, and habit navigation without reloading.
|
||||
- The Chromium path also completes a one-minute meditation through pause and
|
||||
background elapsed time, saves its mood, and verifies the saved check-in after reload.
|
||||
|
||||
Current known gap:
|
||||
Server integration:
|
||||
|
||||
- The shared smoke test verifies account crypto/import parity, rendering, storage, and app settings persistence. It does not yet run a real local sync server transaction for either renderer.
|
||||
- Run `make sync-server-test DAOCHI_BIN=/absolute/path/to/daochi` with a built
|
||||
Daochi server. The runner starts a disposable loopback server and two isolated
|
||||
client databases, and retains test data and logs in a printed temporary directory.
|
||||
- It checks offline recovery, a lost upload response, retry without duplicates,
|
||||
conflicting mood edits, backup restoration, and synced deletion. It uses Inbe's
|
||||
native storage and sync code; browser transport remains covered by the web smoke suite.
|
||||
|
||||
For manual visual comparison, run:
|
||||
For a manual preview, run:
|
||||
|
||||
```bash
|
||||
make web-side-by-side-test
|
||||
```
|
||||
|
||||
The script prints a local URL with raylib/WebGL on the left and Canvas2D on the
|
||||
right. Use `scripts/web-side-by-side-test.sh --no-serve` for CI-style
|
||||
build-and-smoke validation without starting the comparison server.
|
||||
The script prints a local preview URL. Use
|
||||
`scripts/web-side-by-side-test.sh --no-serve` for build-and-smoke validation
|
||||
without starting the preview server.
|
||||
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 464 KiB |
|
After Width: | Height: | Size: 349 KiB |
|
After Width: | Height: | Size: 512 KiB |
|
Before Width: | Height: | Size: 995 B After Width: | Height: | Size: 747 KiB |
|
After Width: | Height: | Size: 1.7 MiB |
@@ -11,3 +11,4 @@ abcdefghijklmnopqrstuvwxyz
|
||||
абвгдеёжзийклмнопрстуфхцчшщъыьэюя
|
||||
。,、!?:;()[]「」『』ー〜・
|
||||
中文简体繁體日本語한국어
|
||||
·—›
|
||||
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 125 KiB |
|
After Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 9.9 KiB |