Skip to content

Commit

Permalink
code-server: switch to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
licy183 committed Nov 30, 2024
1 parent ef3677a commit 5b7c1b3
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tur/code-server/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,16 @@ termux_step_host_build() {
env -i PATH="$PATH" sudo apt update
env -i PATH="$PATH" sudo apt install -yq libxkbfile-dev libsecret-1-dev libkrb5-dev
_setup_nodejs_20
npm install yarn
export PATH="$TERMUX_PKG_HOSTBUILD_DIR/node_modules/.bin:$PATH"
cd $TERMUX_PKG_SRCDIR
yarn --frozen-lockfile
yarn add ternary-stream
yarn build
yarn build:vscode
yarn release
npm install ternary-stream
npm run build
npm run build:vscode
npm run release
mv $TERMUX_PREFIX/bin.bp $TERMUX_PREFIX/bin
}

termux_step_configure() {
_setup_nodejs_20
export PATH="$TERMUX_PKG_HOSTBUILD_DIR/node_modules/.bin:$PATH"
}

termux_step_make() {
Expand All @@ -89,7 +85,7 @@ termux_step_make() {
rm -f $TERMUX_PREFIX/lib/librt.{so,a}
echo "INPUT(-landroid-spawn)" >> $TERMUX_PREFIX/lib/librt.so

yarn release:standalone
npm run release:standalone
mv $TERMUX_PREFIX/bin.bp $TERMUX_PREFIX/bin
}

Expand Down

0 comments on commit 5b7c1b3

Please sign in to comment.