mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-01 09:07:26 +00:00
de575df666
Some checks failed
CI / ${{ matrix.name }} (/usr/bin/gcc-12, /usr/bin/g++-12, ubuntu:22.04, linux-x86_64-system-deps, false, 3.11.x, true, false) (push) Has been cancelled
CI / ${{ matrix.name }} (default, default, 6) (push) Has been cancelled
CI / ${{ matrix.name }} (ubuntu:20.04, linux-x86_64, true, 3.6.x, false, false) (push) Has been cancelled
CI / ${{ matrix.name }} (ubuntu:20.04, tarball, false, 3.6.x, false, true) (push) Has been cancelled
CI / ${{ matrix.name }} (/usr/bin/gcc-7, /usr/bin/g++-7, ubuntu:18.04, linux-x86_64-qt5-system-deps, false, 3.6.x, 5, true) (push) Has been cancelled
CI / ${{ matrix.name }} (ubuntu:18.04, linux-x86_64-qt5, true, 3.6.x, 5, false) (push) Has been cancelled
CI / ${{ matrix.name }} () (push) Has been cancelled
CI / ${{ matrix.name }} (3.12.x) (push) Has been cancelled
CI / ${{ matrix.name }} (arm64, macos-arm64, macos-14, artifact_macos, true) (push) Has been cancelled
CI / ${{ matrix.name }} (false) (push) Has been cancelled
CI / ${{ matrix.name }} (windows-x86_64, windows-2019, artifact_windows, true, 3.12.x) (push) Has been cancelled
CI / ${{ matrix.name }} (x86_64, macos-x86_64, macos-13, true) (push) Has been cancelled
Docs / deploy (push) Has been cancelled
Linter / changes (push) Has been cancelled
CI / plugin-test-${{ matrix.name }} (build, artifact_macos, macos-arm64, macos-14) (push) Has been cancelled
CI / plugin-test-${{ matrix.name }} (build, artifact_windows, windows, windows-2019) (push) Has been cancelled
CI / plugin-test-${{ matrix.name }} (build-linux, artifact_linux, linux-x86_64, ubuntu-20.04) (push) Has been cancelled
Linter / clang-format (push) Has been cancelled
* Qt 5.15.16+kde patches * Pyside2 5.15.16 * Python 3.11.11
66 lines
1.8 KiB
Bash
Executable File
66 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd $(dirname "${BASH_SOURCE[0]}")/..
|
|
mkdir -p cutter-deps && cd cutter-deps
|
|
|
|
DEPS_BASE_URL=https://github.com/rizinorg/cutter-deps/releases/download/v16
|
|
|
|
if [ "$CUTTER_QT" == "5" ]; then
|
|
DEPS_FILE_linux_x86_64=cutter-deps-q5-linux-x86_64.tar.gz
|
|
DEPS_SHA256_linux_x86_64=ab3099fe699db100f2d00e1b70cdf77dec6b8fdd9cd1709c96e123a15fb62571
|
|
DEPS_BASE_URL=https://github.com/rizinorg/cutter-deps/releases/download/qt5-v17
|
|
else
|
|
DEPS_FILE_linux_x86_64=cutter-deps-linux-x86_64.tar.gz
|
|
DEPS_SHA256_linux_x86_64=f63c5af2d9872bc6538a94c839d6ef6645c7630c42cff30f1d9da8eefd9eb040
|
|
fi
|
|
echo $DEPS_SHA256_linux_x86_64
|
|
|
|
DEPS_FILE_macos_x86_64=cutter-deps-macos-x86_64.tar.gz
|
|
DEPS_SHA256_macos_x86_64=bcdc214e34dc3fd720327ad42e03fe3ec996ca28a9987e99898f149a65299a8c
|
|
|
|
DEPS_FILE_macos_arm64=cutter-deps-macos-arm64.tar.gz
|
|
DEPS_SHA256_macos_arm64=aa3f5ae91b93c5176d6bd4313af0888a2b6dcdaa2ef1750dd7e2f98156882e0f
|
|
|
|
DEPS_FILE_win_x86_64=cutter-deps-win-x86_64.tar.gz
|
|
DEPS_SHA256_win_x86_64=710e40cf8329205d09535cc56a9fb155a56ff1a1ca112145864382fb3d4e8160
|
|
|
|
|
|
ARCH=x86_64
|
|
if [ "$OS" == "Windows_NT" ]; then
|
|
PLATFORM=win
|
|
else
|
|
UNAME_S="$(uname -s)"
|
|
if [ "$UNAME_S" == "Linux" ]; then
|
|
PLATFORM=linux
|
|
elif [ "$UNAME_S" == "Darwin" ]; then
|
|
PLATFORM=macos
|
|
ARCH=$(uname -m)
|
|
else
|
|
echo "Unsupported Platform: uname -s => $UNAME_S, \$OS => $OS"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
DEPS_FILE=DEPS_FILE_${PLATFORM}_${ARCH}
|
|
DEPS_FILE=${!DEPS_FILE}
|
|
DEPS_SHA256=DEPS_SHA256_${PLATFORM}_${ARCH}
|
|
DEPS_SHA256=${!DEPS_SHA256}
|
|
DEPS_URL=${DEPS_BASE_URL}/${DEPS_FILE}
|
|
|
|
SHA256SUM=sha256sum
|
|
if ! command -v ${SHA256SUM} &> /dev/null; then
|
|
SHA256SUM="shasum -a 256"
|
|
fi
|
|
|
|
curl -L "$DEPS_URL" -o "$DEPS_FILE" || exit 1
|
|
echo "$DEPS_SHA256 $DEPS_FILE" | ${SHA256SUM} -c - || exit 1
|
|
|
|
tar -xf "$DEPS_FILE" || exit 1
|
|
|
|
if [ -f relocate.sh ]; then
|
|
./relocate.sh || exit 1
|
|
fi
|
|
|