|
|
@ -20,16 +20,38 @@ else |
|
|
|
echo "Release selected: ${CHECKOUT}" |
|
|
|
echo "Release selected: ${CHECKOUT}" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
REPO_PATH=deltachat-desktop |
|
|
|
|
|
|
|
|
|
|
|
echo "Getting the source..." |
|
|
|
echo "Getting the source..." |
|
|
|
./getsauce.sh "git" \ |
|
|
|
REPO_PATH="$REPO_PATH" ./getsauce.sh "git" \ |
|
|
|
"${REPO_URL}" \ |
|
|
|
"${REPO_URL}" \ |
|
|
|
"${CHECKOUT}" |
|
|
|
"${CHECKOUT}" |
|
|
|
|
|
|
|
|
|
|
|
./build.sh |
|
|
|
|
|
|
|
|
|
|
|
NODE_VERSION="v16.14.2" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Checking if node is already installed..." |
|
|
|
|
|
|
|
if command -v node; then |
|
|
|
|
|
|
|
echo "Node already installed." |
|
|
|
|
|
|
|
node --version |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
echo "Node not installed." |
|
|
|
|
|
|
|
echo "Building node ($NODE_VERSION)..." |
|
|
|
|
|
|
|
./build.npm.sh $NODE_VERSION |
|
|
|
|
|
|
|
#./install.npm.thirdparty.sh |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Building deltachat-desktop..." |
|
|
|
|
|
|
|
./build.sh "$REPO_PATH" |
|
|
|
|
|
|
|
|
|
|
|
echo "Package(s) deploy..." |
|
|
|
echo "Package(s) deploy..." |
|
|
|
DIST_DIR="project/dist" |
|
|
|
DIST_DIR="$REPO_PATH/dist" |
|
|
|
INCOMING_DIR="repo/incoming" |
|
|
|
INCOMING_DIR="repo/incoming" |
|
|
|
READY_SUFFIX=".ready" |
|
|
|
READY_SUFFIX=".ready" |
|
|
|
mkdir -p "${INCOMING_DIR}" |
|
|
|
mkdir -p "${INCOMING_DIR}" |
|
|
|
|
|
|
|
if [ -d "${DIST_DIR}" ]; then |
|
|
|
./deploy.sh "${DIST_DIR}" "${INCOMING_DIR}" "${READY_SUFFIX}" |
|
|
|
./deploy.sh "${DIST_DIR}" "${INCOMING_DIR}" "${READY_SUFFIX}" |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
printf "%s\n" "No dist dir found! Aborting..." |
|
|
|
|
|
|
|
exit 1 |
|
|
|
|
|
|
|
fi |
|
|
|