mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 13:55:26 +00:00
732f2d8cde
* Update deps scripts for macOS * Update deps * Update appbundle_embed_python.sh * Use cutter-deps for macOS * Remove qt from Brewfile * Fix .travis.yml * Disable Homebrew update * Fix llvm for macOS * Fix regex in update_deps.py * Fix PYTHON_FRAMEWORK_DIR * Some debug output in travis * Enable Python Bindings for cmake on macOS * QMake debug * Update deps * Hopefully fix pkg-config * QMake hack for shiboken2 and pyside2 * Deploy on deps-test * Update deps * Fix call to appbundle_embed_python.sh * Update deps * Fix Python for cmake on macOS * Update deps * Fix appbundle_embed_python.sh * Copy pyside libs in appbundle_embed_python.sh * Fix includes for CMake on macOS * Copy PySide2 and Shiboke2 libs to Frameworks dir * Manually deploy QtDBus and QtPrintSupport * Print plugins dir * Fix appbundle_embed_python.sh * Update deps * Remove some debug output * Use last release of linuxdeployqt
44 lines
1.0 KiB
Bash
Executable File
44 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
cd $(dirname "${BASH_SOURCE[0]}")/..
|
|
mkdir -p cutter-deps && cd cutter-deps
|
|
|
|
LINUX_FILE="cutter-deps-linux.tar.gz"
|
|
LINUX_MD5=b52ab4f06cb9e4b92372022c37920bf1
|
|
LINUX_URL=https://github.com/radareorg/cutter-deps/releases/download/v6/cutter-deps-linux.tar.gz
|
|
|
|
MACOS_FILE="cutter-deps-macos.tar.gz"
|
|
MACOS_MD5=85b663ea73b80663a532dfafe998905d
|
|
MACOS_URL=https://github.com/radareorg/cutter-deps/releases/download/v6/cutter-deps-macos.tar.gz
|
|
|
|
UNAME_S="$(uname -s)"
|
|
if [ "$UNAME_S" == "Linux" ]; then
|
|
FILE="${LINUX_FILE}"
|
|
MD5="${LINUX_MD5}"
|
|
URL="${LINUX_URL}"
|
|
elif [ "$UNAME_S" == "Darwin" ]; then
|
|
FILE="${MACOS_FILE}"
|
|
MD5="${MACOS_MD5}"
|
|
URL="${MACOS_URL}"
|
|
else
|
|
echo "Unsupported Platform: $UNAME_S"
|
|
exit 1
|
|
fi
|
|
|
|
curl -L "$URL" -o "$FILE" || exit 1
|
|
|
|
if [ "$UNAME_S" == "Darwin" ]; then
|
|
if [ "$(md5 -r "$FILE")" != "$MD5 $FILE" ]; then \
|
|
echo "MD5 mismatch for file $FILE"; \
|
|
exit 1; \
|
|
else \
|
|
echo "$FILE OK"; \
|
|
fi
|
|
else
|
|
echo "$MD5 $FILE" | md5sum -c - || exit 1
|
|
fi
|
|
|
|
tar -xf "$FILE" || exit 1
|
|
./relocate.sh || exit 1
|
|
|