makefile/uic: work around miqt issue with SetObjectName

This commit is contained in:
mappu 2025-04-17 21:27:06 +12:00
parent 04ac766125
commit a0fae43690

@ -34,9 +34,12 @@ resources.rcc resources.go: resources.qrc
mainwindow_ui.go: mainwindow.ui
$(MIQT_UIC) -Qt6 -InFile mainwindow.ui -OutFile mainwindow_ui.go
# workaround upstream issue https://github.com/mappu/miqt/issues/201
sed -i '/SetObjectName/d' mainwindow_ui.go
itemwindow_ui.go: itemwindow.ui
$(MIQT_UIC) -Qt6 -InFile itemwindow.ui -OutFile itemwindow_ui.go
sed -i '/SetObjectName/d' itemwindow_ui.go
windows-manifest.json: windows-manifest.template.json Makefile
cat windows-manifest.template.json | sed -re 's_%VERSION%_$(VERSION)_' > windows-manifest.json