Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions wallet-gui/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@echo off
echo Native build (recommended for Windows)
go build .

REM Linux cross-compilation (requires: install WSL or use Linux build environment)
REM set CGO_ENABLED=1
REM set GOOS=linux
REM set GOARCH=amd64
REM go build -o wallet-gui main.go

12 changes: 12 additions & 0 deletions wallet-gui/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Build for current platform (native build)
# Note: Cross-compilation requires CGO_ENABLED=1 and cross-compilers
# For cross-compilation, uncomment the desired platform below and ensure
# you have the appropriate cross-compiler installed (e.g., mingw-w64 for Windows)

# Native build (recommended)
echo "Native build of wallet-gui..."
go build .

echo "Windows cross-compilation of wallet-gui..."
# Windows cross-compilation (requires: sudo apt-get install gcc-mingw-w64-x86-64)
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 CC=x86_64-w64-mingw32-gcc go build .
1 change: 1 addition & 0 deletions wallet-gui/linux-wallet-gui-node1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
wallet-gui -peer one.cruzb.it -walletdb $HOME/.cruzbit-wallet-gui
2 changes: 2 additions & 0 deletions wallet-gui/linux-wallet-gui-node2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
./wallet-gui -peer two.cruzb.it -walletdb $HOME/.cruzbit-wallet-gui
Loading