2015-11-29 02:03:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# ReactOS Release Engineering Scripts
|
|
|
|
# Release_ISOs - Create the "-iso.zip" and "-live.zip" packages
|
|
|
|
|
|
|
|
# Sanity checks
|
|
|
|
if ! source ./Release_Config; then
|
2016-01-28 08:01:23 +00:00
|
|
|
echo "Please run Release_Configure first!"
|
2015-11-29 02:03:41 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$ROS_ARCH" = "" ]; then
|
2016-01-28 08:01:23 +00:00
|
|
|
echo "Please run this script inside RosBE!"
|
2015-11-29 02:03:41 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2024-09-09 12:22:45 +00:00
|
|
|
if [ "$ROS_ARCH" = "i386" ]; then
|
|
|
|
ROS_PRETTY_ARCH="x86"
|
|
|
|
else
|
|
|
|
ROS_PRETTY_ARCH="$ROS_ARCH"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2015-11-29 02:03:41 +00:00
|
|
|
# Constants
|
|
|
|
ROOTDIR="$PWD"
|
|
|
|
OUTPUTDIR="output-MinGW-i386"
|
2024-09-09 12:22:45 +00:00
|
|
|
BOOTCDISO="ReactOS-${version}-${ROS_PRETTY_ARCH}.iso"
|
|
|
|
BOOTCDZIP="ReactOS-${version}-${ROS_PRETTY_ARCH}-iso.zip"
|
|
|
|
LIVECDISO="ReactOS-${version}-${ROS_PRETTY_ARCH}-live.iso"
|
|
|
|
LIVECDZIP="ReactOS-${version}-${ROS_PRETTY_ARCH}-live.zip"
|
2015-11-29 02:03:41 +00:00
|
|
|
|
|
|
|
# Start from a clean state
|
|
|
|
rm -f "${ROOTDIR}/${BOOTCDZIP}"
|
|
|
|
rm -f "${ROOTDIR}/${LIVECDZIP}"
|
|
|
|
|
2017-05-23 07:27:20 +00:00
|
|
|
# Download the "optional" folder from svn.reactos.org
|
2017-10-01 12:20:36 +00:00
|
|
|
mkdir "${REPODIR}/modules/optional" || exit 1
|
|
|
|
cd "${REPODIR}/modules/optional" || exit 1
|
2017-05-23 07:27:20 +00:00
|
|
|
wget --recursive --level=1 --no-directories --no-parent --execute robots=off "https://svn.reactos.org/optional" || exit 1
|
|
|
|
|
|
|
|
# Check that all mandatory files exist in the "optional" folder.
|
2018-09-21 12:21:22 +00:00
|
|
|
if ! [ -f "DroidSansFallback.ttf" ]; then
|
|
|
|
echo "DroidSansFallback CJK font missing!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! compgen -G "wine_gecko*.msi" > /dev/null; then
|
|
|
|
echo "wine_gecko MSI package missing!"
|
|
|
|
exit 1
|
|
|
|
fi
|
2016-01-07 02:08:52 +00:00
|
|
|
|
2015-11-29 02:03:41 +00:00
|
|
|
# Build ReactOS
|
2017-10-01 12:20:36 +00:00
|
|
|
cd "${REPODIR}" || exit 1
|
|
|
|
./configure.sh -DENABLE_ROSAPPS=1 -DENABLE_WALLPAPERS=1 || exit 1
|
2019-04-10 16:18:12 +00:00
|
|
|
cd "${REPODIR}/${OUTPUTDIR}" || exit 1
|
2015-11-29 02:03:41 +00:00
|
|
|
ninja bootcd || exit 1
|
|
|
|
ninja livecd || exit 1
|
|
|
|
|
|
|
|
# Create the ZIP packages
|
|
|
|
mv "bootcd.iso" "${BOOTCDISO}" || exit 1
|
2024-08-31 18:35:24 +00:00
|
|
|
zip -9 "${ROOTDIR}/${BOOTCDZIP}" "${BOOTCDISO}" || exit 1
|
2015-11-29 02:03:41 +00:00
|
|
|
mv "livecd.iso" "${LIVECDISO}" || exit 1
|
2024-08-31 18:35:24 +00:00
|
|
|
zip -9 "${ROOTDIR}/${LIVECDZIP}" "${LIVECDISO}" || exit 1
|
2015-11-29 02:03:41 +00:00
|
|
|
|
|
|
|
# We're done!
|
|
|
|
echo
|
|
|
|
echo "*******************************************************************************"
|
|
|
|
echo "Successfully created the following packages:"
|
|
|
|
echo
|
|
|
|
echo " - ${BOOTCDZIP}"
|
|
|
|
echo " - ${LIVECDZIP}"
|
|
|
|
echo "*******************************************************************************"
|
|
|
|
echo
|