Blame build-papagayong.sh

699c61
#!/bin/bash
699c61
699c61
set -e
699c61
699c61
BASE_DIR=$(cd `dirname "$0"`; pwd)
699c61
DATA_DIR="$BASE_DIR/docker-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"
699c61
if [ -f $CONFIG_FILE ]; then
699c61
	source $CONFIG_FILE
699c61
fi
699c61
699c61
SCRIPT="$BASE_DIR/docker/run.sh"
699c61
699c61
run_appimage() {
699c61
    export PLATFORM="$1"
699c61
    export ARCH="$2"
699c61
699c61
    echo ""
699c61
    echo "Update papagayong for $PLATFORM-$ARCH"
699c61
    echo ""
699c61
    $SCRIPT update papagayong-master
699c61
    $SCRIPT clean_before_do install_release papagayong-appimage
699c61
699c61
    "$PUBLISH_DIR/publish.sh" \
699c61
        "papagayong" \
1915f6
        "PapagayoNG-%VERSION%-%DATE%-%COMMIT%-$PLATFORM-${ARCH}bit.appimage" \
699c61
        "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-appimage/install_release" \
699c61
        "*.appimage" \
699c61
        "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-appimage/envdeps_release/version-papagayong-master"
699c61
}
699c61
699c61
run_nsis() {
699c61
    export PLATFORM="$1"
699c61
    export ARCH="$2"
699c61
699c61
    echo ""
699c61
    echo "Update papagayong for $PLATFORM-$ARCH"
699c61
    echo ""
723f4f
    $SCRIPT update papagayong-master
723f4f
    $SCRIPT clean_before_do unpack papagayong-master
699c61
699c61
    # QUICK HACK:
699c61
    $SCRIPT shell papagayong-master "/build/script/packet/papagayong-master.files/build-win.sh"
699c61
699c61
    "$PUBLISH_DIR/publish.sh" \
699c61
        "papagayong" \
1915f6
        "PapagayoNG-%VERSION%-%DATE%-%COMMIT%-$PLATFORM-${ARCH}bit.exe" \
699c61
        "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-master/build" \
699c61
        "*.exe" \
699c61
        "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/papagayong-master/unpack/version-papagayong-master"
699c61
}
699c61
723f4f
run_appimage linux 64
723f4f
run_appimage linux 32
699c61
run_nsis win 32