Skip to content

Commit

Permalink
better names for the installers
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Oct 1, 2021
1 parent 3ac7b02 commit 08bb412
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 20 deletions.
13 changes: 9 additions & 4 deletions tools/jenkins/build-Linux-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,15 @@ rm "${TMP_PORTABLE_DIR}/bin/Tests"
# Build repo and packages

ONLINE_INSTALL_DIR="online_installer"
BUNDLED_INSTALL_DIR="offline_installer"
ZIP_INSTALL_DIR="compressed_no_installer"
DEB_INSTALL_DIR="deb_package"
RPM_INSTALL_DIR="rpm_package"
#BUNDLED_INSTALL_DIR="offline_installer"
#ZIP_INSTALL_DIR="compressed_no_installer"
#DEB_INSTALL_DIR="deb_package"
#RPM_INSTALL_DIR="rpm_package"
# These have easily identifiable filenames and extensions anyway:
BUNDLED_INSTALL_DIR="."
ZIP_INSTALL_DIR="."
DEB_INSTALL_DIR="."
RPM_INSTALL_DIR="."

if [ -d "${BUILD_ARCHIVE_DIRECTORY}" ]; then
rm -rf "${BUILD_ARCHIVE_DIRECTORY}"
Expand Down
15 changes: 3 additions & 12 deletions tools/jenkins/build-OSX-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -933,17 +933,8 @@ rm "${PORTABLE_DIRNAME}.app/Contents/MacOS/Tests"
echo "* Creating the disk image"
# Make the dmg
APP_NAME=Natron
DMG_FINAL="${APP_NAME}"
if [ "$NATRON_BUILD_CONFIG" = "SNAPSHOT" ]; then
DMG_FINAL="${DMG_FINAL}-${NATRON_GIT_BRANCH}-${CURRENT_DATE}"
fi

DMG_FINAL="${DMG_FINAL}-${NATRON_VERSION_STRING}-${PKGOS}-${BITS}"
if [ "$COMPILE_TYPE" = "debug" ]; then
DMG_FINAL="${DMG_FINAL}-debug"
fi

DMG_FINAL="${DMG_FINAL}.dmg"
DMG_FINAL="${INSTALLER_BASENAME}.dmg"
DMG_TMP="tmp${DMG_FINAL}"


Expand Down Expand Up @@ -1059,8 +1050,8 @@ rm -rf splashscreen.*
if [ -d "${BUILD_ARCHIVE_DIRECTORY}" ]; then
rm -rf "${BUILD_ARCHIVE_DIRECTORY}"
fi
mkdir -p "${BUILD_ARCHIVE_DIRECTORY}/compressed_no_installer"
mv "${DMG_FINAL}" "${BUILD_ARCHIVE_DIRECTORY}/compressed_no_installer/"
mkdir -p "${BUILD_ARCHIVE_DIRECTORY}"
mv "${DMG_FINAL}" "${BUILD_ARCHIVE_DIRECTORY}/"

echo "*** Artifacts:"
ls -R "${BUILD_ARCHIVE_DIRECTORY}"
Expand Down
8 changes: 6 additions & 2 deletions tools/jenkins/build-Windows-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,12 @@ echo "Done"
# Create installers

ONLINE_INSTALL_DIR="online_installer"
BUNDLED_INSTALL_DIR="offline_installer"
ZIP_INSTALL_DIR="compressed_no_installer"
#BUNDLED_INSTALL_DIR="offline_installer"
#ZIP_INSTALL_DIR="compressed_no_installer"

# These have easily identifiable filenames and extensions anyway:
BUNDLED_INSTALL_DIR="."
ZIP_INSTALL_DIR="."

mkdir -p "${BUILD_ARCHIVE_DIRECTORY}/$BUNDLED_INSTALL_DIR"

Expand Down
42 changes: 41 additions & 1 deletion tools/jenkins/launchBuildMain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,47 @@ if [ "$NATRON_BUILD_CONFIG" = "SNAPSHOT" ]; then
INSTALLER_BASENAME="${INSTALLER_BASENAME}-${NATRON_GIT_BRANCH}-${CURRENT_DATE}"
fi

INSTALLER_BASENAME="${INSTALLER_BASENAME}-${NATRON_VERSION_STRING}-${PKGOS}-${BITS}"
INSTALLER_OS="${PKGOS}"
INSTALLER_ARCH="${BITS}"
if [ "${INSTALLER_OS}" = "OSX" ]; then
case "$(sw_vers -productVersion)" in
10.5.*) INSTALLER_OS="MacOSX105";;
10.6.*) INSTALLER_OS="MacOSX106";;
10.7.*) INSTALLER_OS="MacOSX107";;
10.8.*) INSTALLER_OS="OSX108";;
10.9.*) INSTALLER_OS="OSX109";;
10.10.*) INSTALLER_OS="OSX1010";;
10.11.*) INSTALLER_OS="OSX1011";;
10.12.*) INSTALLER_OS="macOS1012";;
10.13.*) INSTALLER_OS="macOS1013";;
10.14.*) INSTALLER_OS="macOS1014";;
10.15.*) INSTALLER_OS="macOS1015";;
11.*) INSTALLER_OS="macOS11";;
12.*) INSTALLER_OS="macOS12";;
13.*) INSTALLER_OS="macOS13";;
14.*) INSTALLER_OS="macOS14";;
esac

case "${BITS}" in
32) INSTALLER_ARCH="$(uname -p)";;
64) INSTALLER_ARCH="$(uname -m)";;
Universal) INSTALLER_ARCH="Universal-i386-x86_64";; # TODO: support Universal-x86_64-arm64
esac
fi

if [ "${INSTALLER_OS}" = "Linux" ] || [ "${INSTALLER_OS}" = "FreeBSD" ]; then
# Target is always the build arch
INSTALLER_ARCH="$(uname -m)"
fi

if [ "${INSTALLER_OS}" = "Windows" ]; then
case "${BITS}" in
32) INSTALLER_ARCH="i386";;
64) INSTALLER_ARCH="x86_64";;
esac
fi

INSTALLER_BASENAME="${INSTALLER_BASENAME}-${NATRON_VERSION_STRING}-${INSTALLER_OS}-${INSTALLER_ARCH}"

if [ "$COMPILE_TYPE" = "debug" ]; then
INSTALLER_BASENAME="${INSTALLER_BASENAME}-debug"
Expand Down
2 changes: 1 addition & 1 deletion tools/jenkins/runUnitTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ if [ "$FAIL" = "0" ]; then
mv result.txt "$BUILD_ARCHIVE_DIRECTORY/${INSTALLER_BASENAME}-tests.txt"
fi

UNIT_TESTS_FAIL_DIR="$BUILD_ARCHIVE_DIRECTORY/unit_tests_failures"
UNIT_TESTS_FAIL_DIR="$BUILD_ARCHIVE_DIRECTORY/${INSTALLER_BASENAME}-unit_tests_failures"
if [ -n "${UNIT_TESTS_FAIL_DIR:-}" ] && [ -d "failed" ] && [ "$(ls -A failed)" ]; then
printStatusMessage "Moving test failures to $UNIT_TESTS_FAIL_DIR"
mkdir -p "$UNIT_TESTS_FAIL_DIR"
Expand Down

0 comments on commit 08bb412

Please sign in to comment.