mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-21 23:37:29 +00:00
28 lines
818 B
Bash
28 lines
818 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Exit immediately on first error
|
|
set -e
|
|
apt-get -qq update
|
|
apt-get install -y jq
|
|
apt-get install -y curl
|
|
|
|
tools_dir=$CICD_TEMP/tools
|
|
|
|
#Create tools.properties with paths to NSIS and launch4j
|
|
|
|
MAKENSIS_FULLPATH=`which makensis`
|
|
MAKENSIS_PATH=`dirname "$MAKENSIS_FULLPATH"`
|
|
|
|
echo "nsis.path = $MAKENSIS_PATH" > tools.properties
|
|
echo "reshack.path = $tools_dir/resourcehacker/" >> tools.properties
|
|
|
|
cat tools.properties
|
|
|
|
# Secure variable $website_password is not available from outside
|
|
# of jpexs repository (e.g pull requests from other users on GitHub)
|
|
if ! [ -z ${website_password+x} ]; then
|
|
# Store username and password for uploading releases to jpexs server
|
|
echo "username=$website_user" > jpexs_website.properties
|
|
echo "password=$website_password" >> jpexs_website.properties
|
|
fi
|