From 3c2d245542b033bc40dd9fd6a90b9704a9a2e7ca Mon Sep 17 00:00:00 2001 From: Eli Mallon Date: Wed, 21 Oct 2026 13:56:41 -0700 Subject: [PATCH] `make obs-plugin` for local dev --- .gitignore | 1 + Makefile | 9 ++++++++- obs-plugin/package.sh | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a4eb17ac8..063147fe8 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ js/web/.tanstack/ # maestro screenshots, logs and reports (hack/e2e-local.sh) .maestro/artifacts/ +obs-plugin/.cache diff --git a/Makefile b/Makefile index 89e11ece0..b59d15a1a 100644 --- a/Makefile +++ b/Makefile @@ -741,7 +741,14 @@ $(addprefix obs-plugin-,$(OBS_PLUGIN_TARGETS)): obs-plugin-%: cd obs-plugin \ && meson setup --reconfigure build-$* $(OBS_PLUGIN_CROSS_FILE_$*) -Dplugin_version=$(VERSION) \ && meson compile -C build-$* - ./obs-plugin/package.sh $* $(VERSION) $(OUT_DIR) + +# local obs plugin build for whatever you're on +.PHONY: obs-plugin +obs-plugin: + cd obs-plugin \ + && meson setup --reconfigure build-$(BUILDOS)-$(BUILDARCH) -Dplugin_version=$(VERSION) \ + && meson compile -C build-$(BUILDOS)-$(BUILDARCH) + ./obs-plugin/package.sh $(BUILDOS)-$(BUILDARCH) $(VERSION) $(OUT_DIR) # unbuffer here is a workaround for wine trying to pop up a terminal window and failing .PHONY: windows-amd64-startup-test diff --git a/obs-plugin/package.sh b/obs-plugin/package.sh index be7e9b009..91fecf002 100755 --- a/obs-plugin/package.sh +++ b/obs-plugin/package.sh @@ -60,6 +60,8 @@ darwin-*) EOF tar -czf "$OUT/$NAME-$VERSION-$TARGET.tar.gz" -C "$STAGE" "$NAME.plugin" + cd $OUT + tar -xzf $NAME-$VERSION-$TARGET.tar.gz ;; *) echo "unknown target $TARGET" >&2 -- knotmirror 0.0.1