Skip to content

Commit e42d3d7

Browse files
committed
fix: windows run fixes
1 parent 367a941 commit e42d3d7

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

skia/build_go_windows.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -ev
3+
here=$(dirname "$(readlink -f "$BASH_SOURCE")")
4+
cd "$here"
5+
rm -f main_go.exe
6+
rm -f main_go
7+
source tags.sh
8+
export CGO_ENABLED=0 # ensure a cgo-free build
9+
go build -tags "$build_tags" -o main_go.exe ../../boxer/public/imzero/main.go

skia/build_windows.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export IMZERO_CLIENT_CPP_ROOT="$(realpath "$here")"
77
export IMGUI_SKIA_CPP_ROOT="$(realpath "$here/..")"
88
#./copy_libs_windows.sh
99
./build_cpp_windows.sh
10-
#./build_go.sh
10+
./build_go_windows.sh
1111
rm -f bin/*.exe
1212
mkdir -p bin
1313
mv build/imzeroClientSkiaSdl3Impl.exe bin/imgui_skia.exe

skia/run_windows.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
main_go.exe --logFormat console --httpServerAddress localhost:8888 demo --imGuiBinary bin/imgui_skia.exe --mainFontTTF SauceCodeProNerdFontPropo-Regular.ttf --mainFontSizeInPixels 13 -clientFontManager "directwrite" -clientSkiaBackendType gl -clientVsync on -clientTtfFilePath SauceCodeProNerdFontPropo-Regular.ttf -clientBackdropFilter off -clientVectorCmd on -clientImguiNavKeyboard on
3+
pause

skia/run_windows.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
set -ev
33
here=$(dirname "$(readlink -f "$BASH_SOURCE")")
44
cd "$here"
5-
./build_go.sh
5+
./build_go_windows.sh
66
font="./SauceCodeProNerdFontPropo-Regular.ttf"
77
VSYNC="${VSYNC:-on}"
8-
./main_go --logFormat console --httpServerAddress localhost:8888 demo --imGuiBinary ./bin/imgui_skia.exe --mainFontTTF "$font" --mainFontSizeInPixels 13 \
8+
./main_go.exe --logFormat console --httpServerAddress localhost:8888 demo --imGuiBinary ./bin/imgui_skia.exe --mainFontTTF "$font" --mainFontSizeInPixels 13 \
99
-clientFontManager "directwrite" -clientSkiaBackendType gl -clientVsync $VSYNC -clientTtfFilePath "$font" \
1010
-clientBackdropFilter off -clientVectorCmd on -clientImguiNavKeyboard on

0 commit comments

Comments
 (0)