|
|
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"
|
|
|
91875d |
|
|
|
91875d |
source "$BASE_DIR/gen-name.sh"
|
|
|
91875d |
|
|
|
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 ""
|
|
|
5ef601 |
echo "Update and build opentoonz for $PLATFORM-$ARCH"
|
|
|
c250ba |
echo ""
|
|
|
5ef601 |
$SCRIPT chain update opentoonz-testing \
|
|
|
5ef601 |
chain clean_before_do install_release opentoonz-testingappimage
|
|
|
c250ba |
|
|
|
91875d |
local TEMPLATE=`gen_name_template "OpenToonz" "$OPENTOONZ_TESTING_TAG" "$PLATFORM" "$ARCH" ".appimage"`
|
|
|
c250ba |
"$PUBLISH_DIR/publish.sh" \
|
|
|
c250ba |
"opentoonz-testing" \
|
|
|
91875d |
"$TEMPLATE" \
|
|
|
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 ""
|
|
|
5ef601 |
echo "Update and build opentoonz for $PLATFORM-$ARCH"
|
|
|
c250ba |
echo ""
|
|
|
5ef601 |
$SCRIPT chain update opentoonz-testing \
|
|
|
5ef601 |
chain clean_before_do install_release opentoonz-testingnsis
|
|
|
c250ba |
|
|
|
91875d |
local TEMPLATE=`gen_name_template "OpenToonz" "$OPENTOONZ_TESTING_TAG" "$PLATFORM" "$ARCH" ".exe"`
|
|
|
c250ba |
"$PUBLISH_DIR/publish.sh" \
|
|
|
c250ba |
"opentoonz-testing" \
|
|
|
91875d |
"$TEMPLATE" \
|
|
|
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
|
|
|
7de9b7 |
run_nsis win 32
|