Updated build

master
Meliurwen 3 years ago
parent 43d67cd01b
commit 7e63558346
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 2
      Dockerfile
  2. 0
      launch.sh
  3. 16
      src/build.npm.sh
  4. 15
      src/build.sh
  5. 12
      src/install.npm.thirdparty.sh

@ -6,4 +6,4 @@ WORKDIR /srv/build
VOLUME ["/srv/build/repo/incoming"]
ENTRYPOINT ["./main.sh"]
ENTRYPOINT ["./main.sh", "master"]

@ -0,0 +1,16 @@
#!/bin/sh
set -e
apt-get update
apt-get -qq -y --no-install-recommends install curl jq ca-certificates git g++ gcc make clang wget xz-utils python3 sudo
mkdir build_node
cd build_node/ || exit
wget https://nodejs.org/dist/v16.9.1/node-v16.9.1.tar.xz
tar xf node-v16.9.1.tar.xz
mv node-v16.9.1 node
cd node || exit
./configure
make -j4
make install
node --version

@ -2,14 +2,25 @@
set -e
#echo "Installing build dependencies (third party)..."
#./install.npm.thirdparty.sh
echo "Installing build dependencies (npm official source)..."
./build.npm.sh
cd project
echo "Installing build dependencies (apt)..."
apt-get -qq -y --no-install-recommends install npm cargo > /dev/null
#echo "Installing build dependencies (apt)..."
#apt-get -qq -y --no-install-recommends install npm cargo > /dev/null
echo "Installing build dependencies (npm)..."
npm install
echo "Build dependencies installed."
echo "Installing packaging dependencies..."
apt-get -qq -y --no-install-recommends install binutils > /dev/null
echo "Packaging dependencies installed."
echo "Building the app..."
NODE_ENV=production npm run build
NO_ASAR=true npm run pack:generate_config

@ -0,0 +1,12 @@
#!/bin/sh
set -e
apt-get update
apt-get -qq -y --no-install-recommends install curl wget ca-certificates sudo
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
apt-get -qq -y install nodejs
node --version
Loading…
Cancel
Save