From a5c75fecd1c698989d130bcde76afa91718e36b2 Mon Sep 17 00:00:00 2001 From: Ashy5000 Date: Wed, 10 Jul 2024 20:20:31 -0700 Subject: [PATCH] Updates build script (#2) --- build.sh | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/build.sh b/build.sh index 281534b..e57f9de 100755 --- a/build.sh +++ b/build.sh @@ -7,24 +7,20 @@ # You should have received a copy of the GNU General Public License along with this program. If not, see . -# Build all combinations of os and arch -for os in linux darwin windows; do - for arch in amd64 386 arm arm64; do - if [ $os = "darwin" -a $arch = "386" ]; then - continue - fi - if [ $os = "darwin" -a $arch = "arm" ]; then - continue - fi - echo "Building for $os $arch" - env GOOS=$os GOARCH=$arch go build -o builds/node/node_$os-$arch - done -done +# Build builds/node/node +go build -o builds/node/node # Build the GUI wallet cd gui_wallet -for triple in x86_64-unknown-linux-gnu; do - echo "Building for $triple" - cargo build --release --target $triple - mv target/$triple/release/gui_wallet ../builds/gui_wallet/gui_wallet_$triple -done +cargo build +cd .. + +# Build vm software +cd contracts +cargo build +cd .. + +# Build Polylang +cd language +cmake -S . -B cmake-build-debug +cmake --build cmake-build-debug \ No newline at end of file