clash-verge-rev/.github/build-for-linux/entrypoint.sh

18 lines
639 B
Bash
Raw Normal View History

2023-12-07 15:34:49 +08:00
#!/bin/bash
wget https://nodejs.org/dist/v20.10.0/node-v20.10.0-linux-x64.tar.xz
tar -Jxvf ./node-v20.10.0-linux-x64.tar.xz
export PATH=$(pwd)/node-v20.10.0-linux-x64/bin:$PATH
npm install pnpm -g
rustup target add "$INPUT_TARGET"
2024-09-04 08:54:15 +08:00
echo "rustc version: $(rustc --version)"
2023-12-07 15:34:49 +08:00
if [ "$INPUT_TARGET" = "x86_64-unknown-linux-gnu" ]; then
apt-get update
2024-09-04 08:54:15 +08:00
apt-get install -y libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev libglib2.0-dev libgtk-3-dev libwebkit2gtk-4.1-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
2023-12-07 15:34:49 +08:00
fi
2024-09-04 08:54:15 +08:00
bash .github/build-for-linux/build.sh