Skip to content

Commit

Permalink
Updates build script (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashy5000 committed Jul 11, 2024
1 parent f0e594d commit a5c75fe
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,20 @@

# You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

# 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

0 comments on commit a5c75fe

Please sign in to comment.