diff --git a/build-synfigstudio-debug.sh b/build-synfigstudio-debug.sh new file mode 100755 index 0000000..916a62f --- /dev/null +++ b/build-synfigstudio-debug.sh @@ -0,0 +1,71 @@ +#!/bin/bash + +set -e + +BASE_DIR=$(cd `dirname "$0"`; pwd) +DATA_DIR="$BASE_DIR/docker-builder-data" +BUILD_DIR=$DATA_DIR/build +PUBLISH_DIR=$BASE_DIR/publish +CONFIG_FILE="$BASE_DIR/config.sh" +PACKET_BUILD_DIR="$BUILD_DIR/packet" +SCRIPT_BUILD_DIR="$BUILD_DIR/script" +SYNFIGSTUDIO_DEBUG_TAG="debug" + +source "$BASE_DIR/gen-name.sh" + +if [ -f $CONFIG_FILE ]; then + source $CONFIG_FILE +fi + +SCRIPT="$BASE_DIR/docker/run.sh" + +run_appimage() { + export PLATFORM="$1" + export ARCH="$2" + + echo "" + echo "Update and build synfigstudio-debug for $PLATFORM-$ARCH" + echo "" + $SCRIPT chain native update synfigetl-debug \ + chain native update synfigcore-debug \ + chain update synfigetl-debug \ + chain update synfigcore-debug \ + chain update synfigstudio-debug \ + chain clean_before_do install_release synfigstudio-debugappimage + + local TEMPLATE=`gen_name_template "SynfigStudio" "$SYNFIGSTUDIO_DEBUG_TAG" "$PLATFORM" "$ARCH" ".appimage"` + "$PUBLISH_DIR/publish.sh" \ + "synfigstudio-debug" \ + "$TEMPLATE" \ + "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/synfigstudio-debugappimage/install_release" \ + "*.appimage" \ + "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/synfigstudio-debugappimage/envdeps_release/version-synfigstudio-debug" +} + +run_nsis() { + export PLATFORM="$1" + export ARCH="$2" + + echo "" + echo "Update synfigstudio-debug for $PLATFORM-$ARCH" + echo "" + $SCRIPT chain native update synfigetl-debug \ + chain native update synfigcore-debug \ + chain update synfigetl-debug \ + chain update synfigcore-debug \ + chain update synfigstudio-debug \ + chain clean_before_do install_release synfigstudio-debugnsis + + local TEMPLATE=`gen_name_template "SynfigStudio" "$SYNFIGSTUDIO_DEBUG_TAG" "$PLATFORM" "$ARCH" ".exe"` + "$PUBLISH_DIR/publish.sh" \ + "synfigstudio-debug" \ + "$TEMPLATE" \ + "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/synfigstudio-debugnsis/install_release" \ + "*.exe" \ + "$PACKET_BUILD_DIR/$PLATFORM-$ARCH/synfigstudio-debugnsis/envdeps_release/version-synfigstudio-debug" +} + +run_appimage linux 64 +run_appimage linux 32 +run_nsis win 64 +run_nsis win 32 diff --git a/build-synfigstudio.sh b/build-synfigstudio.sh index 35625d5..549d597 100755 --- a/build-synfigstudio.sh +++ b/build-synfigstudio.sh @@ -28,7 +28,6 @@ run_appimage() { echo "" $SCRIPT chain native update synfigetl-master \ chain native update synfigcore-master \ - chain native update synfigstudio-master \ chain update synfigetl-master \ chain update synfigcore-master \ chain update synfigstudio-master \ @@ -52,7 +51,6 @@ run_nsis() { echo "" $SCRIPT chain native update synfigetl-master \ chain native update synfigcore-master \ - chain native update synfigstudio-master \ chain update synfigetl-master \ chain update synfigcore-master \ chain update synfigstudio-master \ diff --git a/docker-builder-data/build/script/packet/synfigcore-debug.sh b/docker-builder-data/build/script/packet/synfigcore-debug.sh index 36632f8..6cc6b87 100644 --- a/docker-builder-data/build/script/packet/synfigcore-debug.sh +++ b/docker-builder-data/build/script/packet/synfigcore-debug.sh @@ -3,5 +3,4 @@ source "$PACKET_SCRIPT_DIR/synfigcore-master.sh" DEPS=`echo "$DEPS" | sed "s|synfigetl-master|synfigetl-debug|g"` PK_URL="https://github.com/blackwarthog/$PK_DIRNAME.git" PK_GIT_CHECKOUT="origin/debug" -PK_CPPFLAGS="-Wa,-mbig-obj" PK_CONFIGURE_OPTIONS="--enable-debug --enable-optimization=0" diff --git a/docker-builder-data/build/script/packet/synfigstudio-debugappimage.files b/docker-builder-data/build/script/packet/synfigstudio-debugappimage.files new file mode 120000 index 0000000..e805e8c --- /dev/null +++ b/docker-builder-data/build/script/packet/synfigstudio-debugappimage.files @@ -0,0 +1 @@ +synfigstudio-appimage.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/synfigstudio-debugappimage.sh b/docker-builder-data/build/script/packet/synfigstudio-debugappimage.sh new file mode 100644 index 0000000..af2b039 --- /dev/null +++ b/docker-builder-data/build/script/packet/synfigstudio-debugappimage.sh @@ -0,0 +1,5 @@ +source "$PACKET_SCRIPT_DIR/synfigstudio-appimage.sh" + +DEPS=`echo "$DEPS" | sed "s|synfigstudio-master|synfigstudio-debug|g"` +PK_URL="https://github.com/blackwarthog/synfig.git" +PK_GIT_CHECKOUT="origin/debug" diff --git a/docker-builder-data/build/script/packet/synfigstudio-debugnsis.files b/docker-builder-data/build/script/packet/synfigstudio-debugnsis.files new file mode 120000 index 0000000..b812b53 --- /dev/null +++ b/docker-builder-data/build/script/packet/synfigstudio-debugnsis.files @@ -0,0 +1 @@ +synfigstudio-nsis.files \ No newline at end of file diff --git a/docker-builder-data/build/script/packet/synfigstudio-debugnsis.sh b/docker-builder-data/build/script/packet/synfigstudio-debugnsis.sh new file mode 100644 index 0000000..88ba494 --- /dev/null +++ b/docker-builder-data/build/script/packet/synfigstudio-debugnsis.sh @@ -0,0 +1,5 @@ +source "$PACKET_SCRIPT_DIR/synfigstudio-nsis.sh" + +DEPS=`echo "$DEPS" | sed "s|synfigstudio-master|synfigstudio-debug|g"` +PK_URL="https://github.com/blackwarthog/synfig.git" +PK_GIT_CHECKOUT="origin/debug"