Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
cmake, ninja via mani
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking committed Nov 3, 2023
1 parent 4413894 commit d036cac
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,28 @@ nami install jb
nami install 7z
nami install bun
nami install zig
nami install node

wget https://apt.llvm.org/llvm.sh -O - | sudo bash -s -- 16 all

sudo apt install cargo ccache cmake git golang libtool ninja-build pkg-config rustc ruby-full -y
nami install cmake ninja
sudo apt install cargo ccache git golang libtool pkg-config rustc ruby-full -y

sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt install gcc-11 g++-11 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100

if [ $(uname -m) = "aarch64" ]; then
dir=`pwd`
cd /tmp/
git clone /~https://github.com/ninja-build/ninja
cd ninja
./configure.py --bootstrap
mv ninja $HOME/.nami/bin/
cd $dir
sed -i '138c\require("child_process").execSync(`mkdir -p ${path.dirname(outputPath)}`)' ./src/js/codegen/build-modules.ts
sed -i '248c\require("child_process").execSync(`mkdir -p ${path.dirname(outputPath)}`)' ./src/js/codegen/build-modules.ts
fi
bun setup
bun run build:release

0 comments on commit d036cac

Please sign in to comment.