Skip to content

Commit

Permalink
add msys2 64bit builds to nightly and release scripts. (#6486)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofTheo authored and arturoc committed Dec 11, 2019
1 parent 63916a8 commit 8eabc2a
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
26 changes: 20 additions & 6 deletions scripts/dev/create_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ if [ "$version" == "" ]; then
exit 1
fi

if [ "$platform" == "msys2" ] && ! ([ "$libs_abi" == "mingw32" ] || [ "$libs_abi" == "mingw64" ]); then
echo ./create_package.sh : libs_abi must be \'mingw32\' or \'mingw64\' for \'msys2\' platform
exit 1
fi

echo
echo
echo
Expand Down Expand Up @@ -335,7 +340,11 @@ function createPackage {
elif [ "$pkg_platform" = "linuxarmv7l" ]; then
scripts/linux/download_libs.sh -a armv7l
elif [ "$pkg_platform" = "msys2" ]; then
scripts/msys2/download_libs.sh
if [ "$libs_abi" = "mingw64" ]; then
scripts/msys2/download_libs.sh -a 64
else
scripts/msys2/download_libs.sh
fi
elif [ "$pkg_platform" = "vs2015" ]; then
scripts/dev/download_libs.sh -p vs2015
elif [ "$pkg_platform" = "vs2017" ]; then
Expand Down Expand Up @@ -624,12 +633,17 @@ function createPackage {
COPYFILE_DISABLE=true tar czf of_v${pkg_version}_${pkg_platform}${libs_abi}_release.tar.gz of_v${pkg_version}_${pkg_platform}${libs_abi}_release
rm -Rf of_v${pkg_version}_${pkg_platform}${libs_abi}_release
else
echo "compressing package to of_v${pkg_version}_${pkg_platform}_release.zip"
if [ "$libs_abi" = "" ]; then
pkg_name=of_v${pkg_version}_${pkg_platform}_release
else
pkg_name=of_v${pkg_version}_${pkg_platform}_${libs_abi}_release
fi
echo "compressing package to ${pkg_name}.zip"
cd $pkg_ofroot/..
mkdir of_v${pkg_version}_${pkg_platform}_release
mv ${pkgfolder}/* of_v${pkg_version}_${pkg_platform}_release
zip --symlinks -r of_v${pkg_version}_${pkg_platform}_release.zip of_v${pkg_version}_${pkg_platform}_release > /dev/null
rm -Rf of_v${pkg_version}_${pkg_platform}_release
mkdir ${pkg_name}
mv ${pkgfolder}/* ${pkg_name}
zip --symlinks -r ${pkg_name}.zip ${pkg_name} > /dev/null
rm -Rf ${pkg_name}
fi
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/dev/download_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ elif [ "$ARCH" == "" ] && [ "$PLATFORM" == "vs2017" ]; then
openFrameworksLibs_${VER}_${PLATFORM}_64_3.zip \
openFrameworksLibs_${VER}_${PLATFORM}_64_4.zip"
elif [ "$PLATFORM" == "msys2" ]; then
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_.zip"
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_mingw${ARCH}.zip"
elif [ "$PLATFORM" == "vs2015" ] || [ "$PLATFORM" == "vs2017" ]; then
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_1.zip \
openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_2.zip \
Expand Down
6 changes: 4 additions & 2 deletions scripts/dev/nightlybuilds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ fi
./create_package.sh linux64 $lastversion master gcc4
./create_package.sh linux64 $lastversion master gcc5
./create_package.sh linux64 $lastversion master gcc6
./create_package.sh msys2 $lastversion master
./create_package.sh msys2 $lastversion master mingw32
./create_package.sh msys2 $lastversion master mingw64
./create_package.sh vs2017 $lastversion master
./create_package.sh ios $lastversion master
./create_package.sh osx $lastversion master
Expand All @@ -69,7 +70,8 @@ mv *.zip /var/www/versions/nightly
mv /var/www/versions/nightly/of_v${lastversion}_linux64gcc4_release.tar.gz /var/www/versions/nightly/of_v${lastversion}_linux64gcc4_nightly.tar.gz
mv /var/www/versions/nightly/of_v${lastversion}_linux64gcc5_release.tar.gz /var/www/versions/nightly/of_v${lastversion}_linux64gcc5_nightly.tar.gz
mv /var/www/versions/nightly/of_v${lastversion}_linux64gcc6_release.tar.gz /var/www/versions/nightly/of_v${lastversion}_linux64gcc6_nightly.tar.gz
mv /var/www/versions/nightly/of_v${lastversion}_msys2_release.zip /var/www/versions/nightly/of_v${lastversion}_msys2_nightly.zip
mv /var/www/versions/nightly/of_v${lastversion}_msys2_mingw32_release.zip /var/www/versions/nightly/of_v${lastversion}_msys2_mingw32_nightly.zip
mv /var/www/versions/nightly/of_v${lastversion}_msys2_mingw64_release.zip /var/www/versions/nightly/of_v${lastversion}_msys2_mingw64_nightly.zip
mv /var/www/versions/nightly/of_v${lastversion}_vs2017_release.zip /var/www/versions/nightly/of_v${lastversion}_vs2017_nightly.zip
mv /var/www/versions/nightly/of_v${lastversion}_ios_release.zip /var/www/versions/nightly/of_v${lastversion}_ios_nightly.zip
mv /var/www/versions/nightly/of_v${lastversion}_osx_release.zip /var/www/versions/nightly/of_v${lastversion}_osx_nightly.zip
Expand Down
5 changes: 3 additions & 2 deletions scripts/dev/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ cd $(cat ~/.ofprojectgenerator/config)/scripts/dev
./create_package.sh linux64 $version $branch gcc6
./create_package.sh linuxarmv6l $version $branch
./create_package.sh linuxarmv7l $version $branch
./create_package.sh msys2 $version $branch
./create_package.sh msys2 $version $branch mingw32
./create_package.sh msys2 $version $branch mingw64
./create_package.sh vs2017 $version $branch
./create_package.sh ios $version $branch
./create_package.sh osx $version $branch
Expand Down Expand Up @@ -99,4 +100,4 @@ fi
git tag $version
git push -u origin $version
git push origin master
git push origin master
2 changes: 1 addition & 1 deletion scripts/msys2/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ while [[ $# > 0 ]] ; do
done

# List of MSYS packages to be installed
msyspackages="make rsync unzip wget"
msyspackages="make rsync zip unzip wget"

# List of MINGW packages to be installed (without prefix)
mingwPackages="assimp boost cairo curl freeglut FreeImage gcc gdb glew glfw \
Expand Down

0 comments on commit 8eabc2a

Please sign in to comment.