Now downloads love from github rather than bitbucke
This commit is contained in:
parent
99e18e0318
commit
b3b17a3838
|
@ -13,8 +13,18 @@ fi
|
|||
VERSION="$1"
|
||||
LOVEFILE="$2"
|
||||
|
||||
LOVE_TAR_URL=https://bitbucket.org/rude/love/downloads/love-${VERSION}-linux-${ARCH}.tar.gz
|
||||
LOVE_TAR=${HOME}/.cache/love-release/love/love-${VERSION}-${ARCH}.tar.gz
|
||||
LOVE_TAR_URL=https://github.com/love2d/love/releases/download/${VERSION}/love-${VERSION}-linux-${ARCH}.tar.gz
|
||||
CACHE_DIR=${HOME}/.cache/love-release/love
|
||||
LOVE_TAR=$CACHE_DIR/love-${VERSION}-${ARCH}.tar.gz
|
||||
|
||||
if ! test -d ${CACHE_DIR}; then
|
||||
mkdir ${CACHE_DIR}
|
||||
fi
|
||||
|
||||
if ! test -f ${LOVE_TAR}; then
|
||||
curl -L -C - -o ${LOVE_TAR} ${LOVE_TAR_URL}
|
||||
fi
|
||||
|
||||
if ! test -f ${LOVE_TAR}; then
|
||||
echo "No tarball found for $VERSION in $LOVE_TAR"
|
||||
exit 1
|
||||
|
|
|
@ -756,7 +756,7 @@ cd "$RELEASE_DIR"
|
|||
|
||||
## MacOS ##
|
||||
if [[ ! -f "$CACHE_DIR/love-$LOVE_VERSION-macos.zip" ]]; then
|
||||
curl -L -C - -o $CACHE_DIR/love-$LOVE_VERSION-macos.zip https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-macos.zip
|
||||
curl -L -C - -o $CACHE_DIR/love-$LOVE_VERSION-macos.zip https://github.com/love2d/love/releases/download/$LOVE_VERSION/love-$LOVE_VERSION-macos.zip
|
||||
fi
|
||||
unzip -qq "$CACHE_DIR/love-$LOVE_VERSION-macos.zip"
|
||||
|
||||
|
@ -964,7 +964,7 @@ cd "$RELEASE_DIR"
|
|||
if [[ $X32 == true ]]; then
|
||||
|
||||
if [[ ! -f "$CACHE_DIR/love-$LOVE_VERSION-win32.zip" ]]; then
|
||||
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win32.zip" "https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win32.zip"
|
||||
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win32.zip" "https://github.com/love2d/love/releases/download/$LOVE_VERSION/love-$LOVE_VERSION-win32.zip"
|
||||
fi
|
||||
|
||||
unzip -qq "$CACHE_DIR/love-$LOVE_VERSION-win32.zip"
|
||||
|
@ -995,9 +995,9 @@ if [[ $X64 == true ]] && compare_version "$LOVE_VERSION" '>=' '0.8.0'; then
|
|||
|
||||
if [[ ! -f "$CACHE_DIR/love-$LOVE_VERSION-win64.zip" ]]; then
|
||||
if compare_version "$LOVE_VERSION" '>=' '0.9.0'; then
|
||||
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win64.zip" "https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win64.zip"
|
||||
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win64.zip" "https://github.com/love2d/love/releases/download/$LOVE_VERSION/love-$LOVE_VERSION-win64.zip"
|
||||
else
|
||||
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win-x64.zip" "https://bitbucket.org/rude/love/downloads/love-$LOVE_VERSION-win-x64.zip"
|
||||
curl -L -C - -o "$CACHE_DIR/love-$LOVE_VERSION-win-x64.zip" "https://github.com/love2d/love/releases/download/$LOVE_VERSION/love-$LOVE_VERSION-win64.zip"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue