mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
20 lines
586 B
Bash
20 lines
586 B
Bash
|
#/bin/bash
|
||
|
|
||
|
nix-build --version
|
||
|
test $? -eq 0 || { echo "Nix is not installed!"; exit 1; }
|
||
|
|
||
|
cp assembly/nix/linux-x86-64* .
|
||
|
cp assembly/nix/microhttpd.nix .
|
||
|
cp assembly/nix/openssl.nix .
|
||
|
export NIX_PATH=nixpkgs=https://github.com/nixOS/nixpkgs/archive/23.05.tar.gz
|
||
|
|
||
|
nix-build linux-x86-64-static.nix
|
||
|
mkdir artifacts
|
||
|
cp ./result/bin/* artifacts/
|
||
|
chmod +x artifacts/*
|
||
|
rm -rf result
|
||
|
nix-build linux-x86-64-tonlib.nix
|
||
|
cp ./result/lib/libtonlibjson.so.0.5 artifacts/libtonlibjson.so
|
||
|
cp ./result/lib/libemulator.so artifacts/
|
||
|
cp -r crypto/fift/lib artifacts/
|
||
|
cp -r crypto/smartcont artifacts/
|