mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-02 13:33:12 +00:00
try with powershell file
# Conflicts: # Makefile # Conflicts: # Makefile
This commit is contained in:
parent
a886c3f48d
commit
14f791ad16
6
.github/scripts/run-windows.ps1
vendored
Normal file
6
.github/scripts/run-windows.ps1
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
param(
|
||||
[string]$BinaryName = "example.exe"
|
||||
)
|
||||
|
||||
$env:PATH = "$PWD\libs;" + $env:PATH
|
||||
& ".\$BinaryName"
|
||||
3
Makefile
3
Makefile
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user