try with powershell file

# Conflicts:
#	Makefile

# Conflicts:
#	Makefile
This commit is contained in:
Eric 2025-10-15 21:35:14 +11:00
parent a886c3f48d
commit 14f791ad16
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

6
.github/scripts/run-windows.ps1 vendored Normal file
View File

@ -0,0 +1,6 @@
param(
[string]$BinaryName = "example.exe"
)
$env:PATH = "$PWD\libs;" + $env:PATH
& ".\$BinaryName"

View File

@ -41,8 +41,7 @@ build:
run:
ifeq ($(OS),Windows_NT)
pwsh -Command "Copy-Item libs\libcodex.dll ."
pwsh -Command ".\$(BIN_NAME)"
pwsh -File ../scripts/run-windows.ps1 -BinaryName $(BIN_NAME)
else ifeq ($(UNAME_S),Darwin)
# Instead of relying on install_name_tool, we can define DYLD_LIBRARY_PATH
# DYLD_LIBRARY_PATH=$(LIBS_DIR) ./$(BIN_NAME)