mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	* remove stripping from nix artifacts * remove stripping from natively compiled binaries * add missing tolk on mac * add missing tolk on mac
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			869 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			869 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #/bin/bash
 | |
| 
 | |
| nix-build --version
 | |
| test $? -eq 0 || { echo "Nix is not installed!"; exit 1; }
 | |
| 
 | |
| with_tests=false
 | |
| 
 | |
| 
 | |
| while getopts 't' flag; do
 | |
|   case "${flag}" in
 | |
|     t) with_tests=true ;;
 | |
|     *) break
 | |
|        ;;
 | |
|   esac
 | |
| done
 | |
| 
 | |
| cp assembly/nix/linux-x86-64* .
 | |
| export NIX_PATH=nixpkgs=https://github.com/nixOS/nixpkgs/archive/23.05.tar.gz
 | |
| 
 | |
| if [ "$with_tests" = true ]; then
 | |
|   nix-build linux-x86-64-static.nix --arg testing true
 | |
| else
 | |
|   nix-build linux-x86-64-static.nix
 | |
| fi
 | |
| 
 | |
| mkdir -p artifacts/lib
 | |
| cp ./result/bin/* artifacts/
 | |
| test $? -eq 0 || { echo "No artifacts have been built..."; exit 1; }
 | |
| 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 ./result/lib/fift/* artifacts/lib/
 | |
| cp -r ./result/share/ton/smartcont artifacts/
 | |
| chmod -R +x artifacts
 |