v0.87.1: one app icon (lint.jpg, wave's corner radius) on desktop and andTunes 0.4.2; quitting no longer segfaults

The swap-a-PNG icon is gone: scripts/make_icons.py renders packaging/lint.jpg
into packaging/lintunes.png and the andTunes launcher. Quitting ends with
os._exit once aboutToQuit has saved everything — Python's teardown of the
QApplication wrapper segfaulted on every quit.
This commit is contained in:
2026-11-06 02:01:06 -08:00
parent 39bbfaa5c0
commit d93a265c33
14 changed files with 132 additions and 28 deletions
+1 -16
View File
@@ -171,21 +171,6 @@ def toggle_icon(name: str, color="black", size=ICON) -> QImage:
return image
def launcher() -> QImage:
size = 192
image, p = _canvas(size, size)
path = QPainterPath()
path.addRoundedRect(QRectF(8, 8, size - 16, size - 16), 36, 36)
p.fillPath(path, QColor("black"))
p.setPen(Qt.PenStyle.NoPen)
p.setBrush(QColor("white"))
p.drawPolygon(_tri(70, 50, 142, 96))
p.drawPolygon(QPolygonF([QPointF(70, 96), QPointF(142, 96),
QPointF(70, 142)]))
p.end()
return image
def save(image: QImage, name: str, *dirs: Path):
for d in dirs:
d.mkdir(parents=True, exist_ok=True)
@@ -201,7 +186,7 @@ def main():
save(transport(name), name, RES, SHIP)
for name in TOGGLES:
save(toggle_icon(name), name, RES, SHIP)
save(launcher(), "ic_launcher", RES)
# The launcher icon is LinTunes' own: scripts/make_icons.py.
# Status-bar icons must be white-on-transparent; Android tints by alpha.
save(transport("play", "white", 96), "ic_notify", RES)
print(f"wrote {len(MENU) + len(TRANSPORT) + len(TOGGLES)} buttons to {RES} and {SHIP}")