Skip to content

Commit

Permalink
fix run-linux-gdb and run-storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
yakimant committed Oct 10, 2024
1 parent 4469a6b commit 2c0f63e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ storybook-build: | storybook-configure

run-storybook: storybook-build
echo -e "\033[92mRunning:\033[39m Storybook"
$(STORYBOOK_BUILD_PATH)/bin/Storybook
nixGL $(STORYBOOK_BUILD_PATH)/bin/Storybook

run-storybook-tests: storybook-build
echo -e "\033[92mRunning:\033[39m Storybook Tests"
Expand Down Expand Up @@ -857,17 +857,15 @@ ICON_TOOL := node_modules/.bin/fileicon
# STATUS_PORT ?= 30306
# WAKUV2_PORT ?= 30307

run-linux: export QTWEBENGINE_CHROMIUM_FLAGS := "--disable-gpu" # This solved freezing
run-linux: export LD_LIBRARY_PATH := $(QT5_LIBDIR):$(STATUSGO_LIBDIR):$(STATUSKEYCARDGO_LIBDIR):$(LD_LIBRARY_PATH)
run-linux: nim_status_client
echo -e "\033[92mRunning:\033[39m bin/nim_status_client"
nixGL ./bin/nim_status_client $(ARGS)

run-linux: export QTWEBENGINE_CHROMIUM_FLAGS := "--disable-gpu" # This solved freezing
run-linux: export LD_LIBRARY_PATH := $(QT5_LIBDIR):$(STATUSGO_LIBDIR):$(STATUSKEYCARDGO_LIBDIR):$(LD_LIBRARY_PATH)
run-linux-gdb: export LD_LIBRARY_PATH := $(QT5_LIBDIR):$(STATUSGO_LIBDIR):$(STATUSKEYCARDGO_LIBDIR):$(LD_LIBRARY_PATH)
run-linux-gdb: nim_status_client
echo -e "\033[92mRunning:\033[39m bin/nim_status_client"
gdb -ex=r nixGL ./bin/nim_status_client $(ARGS)
nixGL gdb -ex=r ./bin/nim_status_client $(ARGS)

run-macos: nim_status_client
mkdir -p bin/StatusDev.app/Contents/{MacOS,Resources}
Expand Down
1 change: 1 addition & 0 deletions nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ in pkgs.mkShell {
go_1_21
pcre nss pcsclite extra-cmake-modules
xorg.libxcb xorg.libX11 libxkbcommon
gdb # dev machine, not CI
] ++ (with gst_all_1; [
gst-libav gstreamer
gst-plugins-bad gst-plugins-base
Expand Down

0 comments on commit 2c0f63e

Please sign in to comment.