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