Updated build

master
Meliurwen 3 years ago
parent cb106b78e5
commit 87e1f962ad
  1. 3
      Dockerfile
  2. 6
      launch.sh
  3. 8
      src/build.npm.sh
  4. 6
      src/build.sh
  5. 2
      src/install.npm.thirdparty.sh
  6. 14
      src/main.sh

@ -4,6 +4,9 @@ COPY ./src /srv/build
WORKDIR /srv/build
# Building node
RUN ./build.npm.sh
VOLUME ["/srv/build/repo/incoming"]
ENTRYPOINT ["./main.sh"]

@ -2,6 +2,6 @@
set -e
docker build -t vscodium .
docker run --rm -v /srv/incoming:/srv/build/repo/incoming vscodium
docker image rm vscodium
#docker build -t vscodium .
docker run -v /srv/incoming:/srv/build/repo/incoming vscodium
#docker image rm vscodium

@ -3,12 +3,12 @@
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 python sudo
apt-get -qq -y --no-install-recommends install curl jq ca-certificates git g++ gcc make clang wget xz-utils python sudo python3-minimal python3-distutils
mkdir build_node
cd build_node/ || exit
wget https://nodejs.org/dist/v12.14.1/node-v12.14.1.tar.xz
tar xf node-v12.14.1.tar.xz
mv node-v12.14.1 node
wget https://nodejs.org/dist/v16.13.0/node-v16.13.0.tar.xz
tar xf node-v16.13.0.tar.xz
mv node-v16.13.0 node
cd node || exit
./configure
make -j4

@ -3,7 +3,7 @@
set -e
apt-get update
apt-get -y --no-install-recommends install git jq imagemagick curl build-essential pkg-config libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm
apt-get -y --no-install-recommends install git jq imagemagick curl build-essential pkg-config libx11-dev libxkbfile-dev libsecret-1-dev fakeroot file desktop-file-utils binutils
npm install yarn --global
@ -12,4 +12,8 @@ cd vscodium/ || exit
sed '/create_appimage\.sh/d' -i build.sh
export SHOULD_BUILD_DEB=yes
export SHOULD_BUILD_RPM=no
export SHOULD_BUILD_APPIMAGE=no
./build/build_linux.sh

@ -5,7 +5,7 @@ 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_12.x | sudo -E bash -
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
apt-get -qq -y install nodejs

@ -2,16 +2,22 @@
set -e
echo "Building node..."
./build.npm.sh
#./install.npm.thirdparty.sh
#echo "Building node..."
#./build.npm.sh
#./install.npm.thirdparty.sh && sudo apt-get -qq -y --no-install-recommends install python
echo "Building VSCodium..."
./build.sh
echo "Package(s) deploy..."
DIST_DIR="vscodium/.build/linux/deb/amd64/deb"
DIST_DIR="vscode/.build/linux/deb/amd64/deb"
INCOMING_DIR="repo/incoming"
READY_SUFFIX=".ready"
mkdir -p "${INCOMING_DIR}"
tree > "${INCOMING_DIR}/tree.txt"
if [ -d "${DIST_DIR}"" ]; then
./deploy.sh "${DIST_DIR}" "${INCOMING_DIR}" "${READY_SUFFIX}"
else
printf "%s" "No dist dir found! Aborting..."
exit 1
fi

Loading…
Cancel
Save