diff --git a/build-synfigstudio.sh b/build-synfigstudio.sh index d2d3d31..bccc117 100755 --- a/build-synfigstudio.sh +++ b/build-synfigstudio.sh @@ -55,7 +55,8 @@ run_nsis() { chain update synfigetl-master \ chain update synfigcore-master \ chain update synfigstudio-master \ - chain clean_before_do install_release synfigstudio-nsis + chain clean_before_do install_release synfigstudio-nsis \ + chain clean_before_do install_release synfigstudio-portable local TEMPLATE=`gen_name_template "SynfigStudio" "$SYNFIGSTUDIO_TESTING_TAG" "$PLATFORM" "$ARCH" ".exe"` "$PUBLISH_DIR/publish.sh" \ diff --git a/docker-builder-data/build/script/packet/synfigstudio-portable.files/synfigstudio.bat b/docker-builder-data/build/script/packet/synfigstudio-portable.files/synfigstudio.bat new file mode 100755 index 0000000..665c91c --- /dev/null +++ b/docker-builder-data/build/script/packet/synfigstudio-portable.files/synfigstudio.bat @@ -0,0 +1,2 @@ +cd "%~dp0\" +start "" "%~dp0\bin\synfigstudio.exe" diff --git a/docker-builder-data/build/script/packet/synfigstudio-portable.sh b/docker-builder-data/build/script/packet/synfigstudio-portable.sh new file mode 100644 index 0000000..bee1143 --- /dev/null +++ b/docker-builder-data/build/script/packet/synfigstudio-portable.sh @@ -0,0 +1,33 @@ +DEPS="synfigstudio-master" + +pkinstall_release() { + # create temporary dir + rm -rf "$INSTALL_RELEASE_PACKET_DIR/portable" + mkdir -p "$INSTALL_RELEASE_PACKET_DIR/portable" + cd "$INSTALL_RELEASE_PACKET_DIR/portable" || return 1 + + # copy files + copy "$ENVDEPS_RELEASE_PACKET_DIR" "./" || return 1 + + # move examples + mv "./share/synfig/examples" "./" || return 1 + + # add portable python + copy "$INSTALL_PACKET_DIR/$PK_PYTHON_DIRNAME" "./python" || return 1 + + # get version + local LOCAL_VERSION_FULL=$(cat $ENVDEPS_RELEASE_PACKET_DIR/version-synfigstudio-*) + local LOCAL_VERSION=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 1) + local LOCAL_VERSION2=$(echo "$LOCAL_VERSION" | cut -d . -f -2) + local LOCAL_COMMIT=$(echo "$LOCAL_VERSION_FULL" | cut -d - -f 2) + + # copy NSIS configuration + cp "$FILES_PACKET_DIR/synfigstudio.bat" "./" || return 1 + + # let's go + zip -r "../synfigstudio-${LOCAL_VERSION}-${LOCAL_COMMIT:0:5}.zip" ./ || return 1 + + # remove temporary dir + cd "$INSTALL_RELEASE_PACKET_DIR" || return 1 + rm -rf "portable" +}