mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 13:55:26 +00:00
c985fdc1b1
* Run cutter appimage packaging in GHA. * Update cutter-deps. * Switch to older visual studio due to pyside having problems parsing MSVC headers. * Take GIL in the injected code fragment #2511.
57 lines
1.3 KiB
Bash
Executable File
57 lines
1.3 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=6cd6dff0b5e33d5ff62c57b4400603f5
|
|
LINUX_URL=https://github.com/rizinorg/cutter-deps/releases/download/v13/cutter-deps-linux.tar.gz
|
|
|
|
MACOS_FILE="cutter-deps-macos.tar.gz"
|
|
MACOS_MD5=4a7fe127d99dc6087c290d828aa19f6b
|
|
MACOS_URL=https://github.com/rizinorg/cutter-deps/releases/download/v13/cutter-deps-macos.tar.gz
|
|
|
|
WIN_FILE="cutter-deps-win.tar.gz"
|
|
WIN_MD5=d867df10fb0c2b029faf737453014da6
|
|
WIN_URL=https://github.com/rizinorg/cutter-deps/releases/download/v13/cutter-deps-win.tar.gz
|
|
|
|
if [ "$OS" == "Windows_NT" ]; then
|
|
FILE="${WIN_FILE}"
|
|
MD5="${WIN_MD5}"
|
|
URL="${WIN_URL}"
|
|
else
|
|
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 => $UNAME_S, \$OS => $OS"
|
|
exit 1
|
|
fi
|
|
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
|
|
|
|
if [ -f relocate.sh ]; then
|
|
./relocate.sh || exit 1
|
|
fi
|
|
|