Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace cygwin with chocolatey #3

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@ if cmake.exe --version; then
echo "cmake already in path..."
else
echo "cmake not available, installing."
ROOT="$(cygpath -m /)"
echo "cygwin root: $ROOT"
LOCAL_PACKAGE_DIR="$(cygpath -w /var/cache/setup)"
c://ProgramData/Chocolatey/bin/choco.exe install cmake --installargs 'ADD_CMAKE_TO_PATH=User'

$ROOT/setup-x86_64.exe --root $ROOT -q --packages=cmake --local-package-dir $LOCAL_PACKAGE_DIR --site=http://cygwin.mirror.constant.com/ --no-desktop --no-startmenu --no-shortcuts --verbose

CMAKE_FOLDER="$(find /usr/share -maxdepth 1 -name cmake-*)"
CMAKE_FOLDER="C:\Program Files\CMake\bin"
CMAKE_DIRNAME="$(basename $CMAKE_FOLDER)"

echo "folder: $CMAKE_FOLDER"
echo "dirname: $CMAKE_DIRNAME"

echo "Copying to $cur__bin/cmake.exe"
cp /usr/bin/cmake.exe $cur__bin/cmake.exe
cp /usr/bin/cygarchive-13.dll $cur__bin/cygarchive-13.dll
cp "$CMAKE_FOLDER"/cmake.exe $cur__bin/cmake.exe

echo "Copying to $cur__share/$CMAKE_DIRNAME"
cp -r $CMAKE_FOLDER $cur__share/$CMAKE_DIRNAME
echo "Copying to $cur__share/cmake"
cp -r $CMAKE_FOLDER $cur__share/cmake

OUTPUT="$($cur__bin/cmake.exe --version)"
echo "cmake version is: $OUTPUT"
fi