|
|
699c61 |
#!/bin/bash
|
|
|
699c61 |
|
|
|
699c61 |
set -e
|
|
|
699c61 |
|
|
|
699c61 |
BASE_DIR=$(cd `dirname "$0"`; pwd)
|
|
|
a1747c |
DATA_DIR="$BASE_DIR/env-builder-data"
|
|
|
699c61 |
BUILD_DIR=$DATA_DIR/build
|
|
|
699c61 |
PUBLISH_DIR=$BASE_DIR/publish
|
|
|
699c61 |
CONFIG_FILE="$BASE_DIR/config.sh"
|
|
|
699c61 |
PACKET_BUILD_DIR="$BUILD_DIR/packet"
|
|
|
699c61 |
SCRIPT_BUILD_DIR="$BUILD_DIR/script"
|
|
|
91875d |
|
|
|
91875d |
source "$BASE_DIR/gen-name.sh"
|
|
|
91875d |
|
|
|
699c61 |
if [ -f $CONFIG_FILE ]; then
|
|
|
699c61 |
source $CONFIG_FILE
|
|
|
699c61 |
fi
|
|
|
699c61 |
|
|
|
a1747c |
SCRIPT="$BASE_DIR/env/run.sh"
|
|
|
699c61 |
|
|
|
699c61 |
run_appimage() {
|
|
|
699c61 |
export PLATFORM="$1"
|
|
|
699c61 |
export ARCH="$2"
|
|
|
699c61 |
|
|
|
699c61 |
echo ""
|
|
|
5ef601 |
echo "Update and build papagayong for $PLATFORM-$ARCH"
|
|
|
699c61 |
echo ""
|
|
|
5ef601 |
$SCRIPT chain update papagayong-testing \
|
|
|
5ef601 |
chain clean_before_do install_release papagayong-appimage
|
|
|
699c61 |
|
|
|
91875d |
local TEMPLATE=`gen_name_template "PapagayoNG" "" "$PLATFORM" "$ARCH" ".appimage"`
|
|
|
699c61 |
"$PUBLISH_DIR/publish.sh" \
|
|
|
699c61 |
"papagayong" \
|
|
|
91875d |
"$TEMPLATE" \
|
|
|
699c61 |
"$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-appimage/install_release" \
|
|
|
699c61 |
"*.appimage" \
|
|
|
8224ab |
"$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-appimage/envdeps_release/version-papagayong-testing"
|
|
|
699c61 |
}
|
|
|
699c61 |
|
|
|
699c61 |
run_nsis() {
|
|
|
699c61 |
export PLATFORM="$1"
|
|
|
699c61 |
export ARCH="$2"
|
|
|
699c61 |
|
|
|
699c61 |
echo ""
|
|
|
5ef601 |
echo "Update and build papagayong for $PLATFORM-$ARCH"
|
|
|
699c61 |
echo ""
|
|
|
699c61 |
# QUICK HACK:
|
|
|
f0ec65 |
PLATFORM=win ARCH=32 $SCRIPT clean_before_do env zlib-1.2.11 # for NSIS
|
|
|
5ef601 |
$SCRIPT chain update papagayong-testing \
|
|
|
337357 |
chain clean_before_do unpack papagayong-testing \
|
|
|
337357 |
chain clean_before_do envdeps_native papagayong-testing \
|
|
|
5ef601 |
chain shell papagayong-testing "/build/script/packet/papagayong-testing.files/build-win.sh"
|
|
|
699c61 |
|
|
|
91875d |
local TEMPLATE=`gen_name_template "PapagayoNG" "" "$PLATFORM" "$ARCH" ".exe"`
|
|
|
699c61 |
"$PUBLISH_DIR/publish.sh" \
|
|
|
699c61 |
"papagayong" \
|
|
|
91875d |
"$TEMPLATE" \
|
|
|
8224ab |
"$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-testing/build" \
|
|
|
699c61 |
"*.exe" \
|
|
|
8224ab |
"$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-testing/unpack/version-papagayong-testing"
|
|
|
699c61 |
}
|
|
|
699c61 |
|
|
|
723f4f |
run_appimage linux 64
|
|
|
723f4f |
run_appimage linux 32
|
|
|
699c61 |
run_nsis win 32
|