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
|
|
|
|
|
|
|
|
# Constants
|
|
|
|
ROOTDIR="$PWD"
|
|
|
|
WORKDIR="$PWD/Release_WorkDir/ISOs"
|
|
|
|
OUTPUTDIR="output-MinGW-i386"
|
|
|
|
BOOTCDISO="ReactOS-${version}.iso"
|
|
|
|
BOOTCDZIP="ReactOS-${version}-iso.zip"
|
|
|
|
LIVECDISO="ReactOS-${version}-Live.iso"
|
|
|
|
LIVECDZIP="ReactOS-${version}-live.zip"
|
|
|
|
|
|
|
|
# Start from a clean state
|
|
|
|
rm -f "${ROOTDIR}/${BOOTCDZIP}"
|
|
|
|
rm -f "${ROOTDIR}/${LIVECDZIP}"
|
|
|
|
rm -rf "${WORKDIR}"
|
|
|
|
mkdir -p "${WORKDIR}"
|
|
|
|
svn co "https://svn.reactos.org/reactos/branches/${branch_name}/reactos" "${WORKDIR}" || exit 1
|
|
|
|
svn co "https://svn.reactos.org/reactos/branches/${branch_name}/rosapps" "${WORKDIR}/modules/rosapps" || exit 1
|
|
|
|
svn co "https://svn.reactos.org/reactos/branches/${branch_name}/wallpapers" "${WORKDIR}/modules/wallpapers" || exit 1
|
|
|
|
|
2016-01-07 02:08:52 +00:00
|
|
|
# Create an "optional" folder and fill it with all files we may distribute.
|
|
|
|
# Currently, this is only the wine_gecko package. Just download all wine_gecko packages and the reactos.dff.in will pick the right one.
|
|
|
|
mkdir "${WORKDIR}/modules/optional" || exit 1
|
|
|
|
cd "${WORKDIR}/modules/optional" || exit 1
|
|
|
|
wget --recursive --level=1 --no-directories --no-parent --execute robots=off "https://svn.reactos.org/amine" -A "wine_gecko*.msi" || exit 1
|
|
|
|
|
2015-11-29 02:03:41 +00:00
|
|
|
# Build ReactOS
|
|
|
|
cd "${WORKDIR}" || exit 1
|
|
|
|
./configure.sh || exit 1
|
|
|
|
cd "${WORKDIR}/${OUTPUTDIR}/reactos" || exit 1
|
|
|
|
ninja bootcd || exit 1
|
|
|
|
ninja livecd || exit 1
|
|
|
|
|
|
|
|
# Create the ZIP packages
|
|
|
|
mv "bootcd.iso" "${BOOTCDISO}" || exit 1
|
|
|
|
zip "${ROOTDIR}/${BOOTCDZIP}" "${BOOTCDISO}" || exit 1
|
|
|
|
mv "livecd.iso" "${LIVECDISO}" || exit 1
|
|
|
|
zip "${ROOTDIR}/${LIVECDZIP}" "${LIVECDISO}" || exit 1
|
|
|
|
|
|
|
|
# We're done!
|
|
|
|
echo
|
|
|
|
echo "*******************************************************************************"
|
|
|
|
echo "Successfully created the following packages:"
|
|
|
|
echo
|
|
|
|
echo " - ${BOOTCDZIP}"
|
|
|
|
echo " - ${LIVECDZIP}"
|
|
|
|
echo "*******************************************************************************"
|
|
|
|
echo
|