Blame build-opentoonz-testing.sh

c250ba
#!/bin/bash
c250ba
c250ba
set -e
c250ba
c250ba
BASE_DIR=$(cd `dirname "$0"`; pwd)
c250ba
DATA_DIR="$BASE_DIR/docker-builder-data"
c250ba
BUILD_DIR=$DATA_DIR/build
c250ba
PUBLISH_DIR=$BASE_DIR/publish
c250ba
CONFIG_FILE="$BASE_DIR/config.sh"
c250ba
PACKET_BUILD_DIR="$BUILD_DIR/packet"
c250ba
SCRIPT_BUILD_DIR="$BUILD_DIR/script"
576504
OPENTOONZ_TESTING_TAG="testing"
c250ba
if [ -f $CONFIG_FILE ]; then
c250ba
	source $CONFIG_FILE
c250ba
fi
c250ba
c250ba
SCRIPT="$BASE_DIR/docker/run.sh"
c250ba
c250ba
run_appimage() {
c250ba
    export PLATFORM="$1"
c250ba
    export ARCH="$2"
c250ba
c250ba
    echo ""
c250ba
    echo "Update opentoonz for $PLATFORM-$ARCH"
c250ba
    echo ""
c250ba
    $SCRIPT update opentoonz-testing
c250ba
    $SCRIPT clean_before_do install_release opentoonz-testingappimage
c250ba
c250ba
    "$PUBLISH_DIR/publish.sh" \
c250ba
        "opentoonz-testing" \
576504
        "OpenToonz-%VERSION%-$OPENTOONZ_TESTING_TAG-%DATE%-%COMMIT%-$PLATFORM-${ARCH}bits.appimage" \
c250ba
        "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/opentoonz-testingappimage/install_release" \
c250ba
        "*.appimage" \
c250ba
        "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/opentoonz-testingappimage/envdeps_release/version-opentoonz-testing"
c250ba
}
c250ba
c250ba
run_nsis() {
c250ba
    export PLATFORM="$1"
c250ba
    export ARCH="$2"
c250ba
c250ba
    echo ""
c250ba
    echo "Update opentoonz for $PLATFORM-$ARCH"
c250ba
    echo ""
c250ba
    $SCRIPT update opentoonz-testing
c250ba
    $SCRIPT clean_before_do install_release opentoonz-testingnsis
c250ba
c250ba
    "$PUBLISH_DIR/publish.sh" \
c250ba
        "opentoonz-testing" \
576504
        "OpenToonz-%VERSION%-$OPENTOONZ_TESTING_TAG-%DATE%-%COMMIT%-$PLATFORM-${ARCH}bits.exe" \
c250ba
        "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/opentoonz-testingnsis/install_release" \
c250ba
        "*.exe" \
c250ba
        "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/opentoonz-testingnsis/envdeps_release/version-opentoonz-testing"
c250ba
}
c250ba
c250ba
run_appimage linux 64
c250ba
run_appimage linux 32
c250ba
run_nsis win 64
c250ba
#run_nsis win 32