Bitbucket downloads

This commit is contained in:
2020-09-24 13:46:17 -05:00
parent d827c1f3c8
commit 689350f4ed
3 changed files with 16 additions and 56 deletions

View File

@@ -9,10 +9,10 @@ Repertory allows you to mount Sia, Skynet and/or ScPrime blockchain storage solu
* ScPrime >=1.4.1.2 * ScPrime >=1.4.1.2
## Downloads ## Downloads
* **Repertory UI v1.3.1 Linux 64-bit** [<Primary\>](https://pixeldrain.com/u/vu41muyq) [<Alternate\>](https://bitbucket.org/blockstorage/repertory-testing/downloads/repertory-ui_1.3.1_linux_x86_64.AppImage) * **Repertory UI v1.3.1 Linux 64-bit** [<Download\>](https://bitbucket.org/blockstorage/repertory-testing/downloads/repertory-ui_1.3.1_linux_x86_64.AppImage)
* NOTE: Linux distributions require `fuse` and `libfuse` to be installed. * NOTE: Linux distributions require `fuse` and `libfuse` to be installed.
* **Repertory UI v1.3.1 OS X 64-bit** [<Primary\>](https://pixeldrain.com/u/wWnKgmL3) [<Alternate\>](https://bitbucket.org/blockstorage/repertory-testing/downloads/repertory-ui_1.3.1_mac.dmg) * **Repertory UI v1.3.1 OS X 64-bit** [<Download\>](https://bitbucket.org/blockstorage/repertory-testing/downloads/repertory-ui_1.3.1_mac.dmg)
* **Repertory UI v1.3.1 Windows 64-bit** [<Primary\>](https://pixeldrain.com/u/3LWGxsU6) [<Alternate\>](https://bitbucket.org/blockstorage/repertory-testing/downloads/repertory-ui_1.3.1_win.exe) * **Repertory UI v1.3.1 Windows 64-bit** [<Download\>](https://bitbucket.org/blockstorage/repertory-testing/downloads/repertory-ui_1.3.1_win.exe)
## Supported Platforms ## Supported Platforms
* OS X 64-bit * OS X 64-bit

View File

@@ -46,12 +46,6 @@ pushd "%ROOT%"
del /q upload_response.json 1>NUL 2>&1 del /q upload_response.json 1>NUL 2>&1
("%CURL_BIN%" -F name="%OUT_FILE%" -F anonymous=true -F file="@%OUT_FILE%" https://pixeldrain.com/api/file > upload_response.json) || (
call :PIXEL_RESPONSE 0
)
call :PIXEL_RESPONSE 1
set PIXEL_LOCATION=https://pixeldrain.com/api/file/!PIXEL_ID!
call :UPLOAD_TO_BITBUCKET "%OUT_FILE%" call :UPLOAD_TO_BITBUCKET "%OUT_FILE%"
call :UPLOAD_TO_BITBUCKET "%OUT_FILE%.sha256" call :UPLOAD_TO_BITBUCKET "%OUT_FILE%.sha256"
call :UPLOAD_TO_BITBUCKET "%OUT_FILE%.sig" call :UPLOAD_TO_BITBUCKET "%OUT_FILE%.sig"
@@ -62,7 +56,7 @@ pushd "%ROOT%"
("%JQ_BIN%" ".Versions.win32|=(.+ ["""%APP_VER%"""]|unique)" ..\releases.json>releases_temp.json && move /Y releases_temp.json releases.json 1>NUL 2>&1) || (call :ERROR "Update releases.json Versions failed") ("%JQ_BIN%" ".Versions.win32|=(.+ ["""%APP_VER%"""]|unique)" ..\releases.json>releases_temp.json && move /Y releases_temp.json releases.json 1>NUL 2>&1) || (call :ERROR "Update releases.json Versions failed")
("%JQ_BIN%" ".Locations.win32."""%APP_VER%""".sig="""!APP_SIG!"""" releases.json>releases_temp.json && move /Y releases_temp.json releases.json 1>NUL 2>&1) || (call :ERROR "Update releases.json sig failed") ("%JQ_BIN%" ".Locations.win32."""%APP_VER%""".sig="""!APP_SIG!"""" releases.json>releases_temp.json && move /Y releases_temp.json releases.json 1>NUL 2>&1) || (call :ERROR "Update releases.json sig failed")
("%JQ_BIN%" ".Locations.win32."""%APP_VER%""".sha256="""!APP_SHA256!"""" releases.json>releases_temp.json && move /Y releases_temp.json releases.json 1>NUL 2>&1) || (call :ERROR "Update releases.json sha256 failed") ("%JQ_BIN%" ".Locations.win32."""%APP_VER%""".sha256="""!APP_SHA256!"""" releases.json>releases_temp.json && move /Y releases_temp.json releases.json 1>NUL 2>&1) || (call :ERROR "Update releases.json sha256 failed")
("%JQ_BIN%" ".Locations.win32."""%APP_VER%""".urls=["""!PIXEL_LOCATION!""","""!BITBUCKET_LOCATION!"""]" releases.json>releases_temp.json && move /Y releases_temp.json releases.json 1>NUL 2>&1) || (call :ERROR "Update releases.json URL failed") ("%JQ_BIN%" ".Locations.win32."""%APP_VER%""".urls=["""!BITBUCKET_LOCATION!"""]" releases.json>releases_temp.json && move /Y releases_temp.json releases.json 1>NUL 2>&1) || (call :ERROR "Update releases.json URL failed")
) )
popd popd
) || ( ) || (
@@ -75,30 +69,6 @@ goto :END
set %~1=!%~1:"=! set %~1=!%~1:"=!
goto :EOF goto :EOF
:PIXEL_RESPONSE
set PIXEL_RESPONSE=
if %1==1 (
for /f "delims=" %%i in ('%JQ_BIN% .success upload_response.json') do (
if "%%i" == "false" (
for /f "delims=" %%i in ('%JQ_BIN% .message upload_response.json') do (
set PIXEL_RESPONSE=!PIXEL_RESPONSE!%%i
)
call :ERROR "Upload to pixeldrain failed: !PIXEL_RESPONSE!"
) else (
for /f "delims=" %%i in ('%JQ_BIN% .id upload_response.json') do (
set PIXEL_ID=%%i
call :NO_QUOTES PIXEL_ID
)
)
)
) else (
for /f "delims=" %%i in ('type upload_response.json') do (
set PIXEL_RESPONSE=!PIXEL_RESPONSE!%%i
)
call :ERROR "Upload to pixeldrain failed: !PIXEL_RESPONSE!"
)
goto :EOF
:UPLOAD_TO_BITBUCKET :UPLOAD_TO_BITBUCKET
set SOURCE_FILE=%1 set SOURCE_FILE=%1
call :NO_QUOTES SOURCE_FILE call :NO_QUOTES SOURCE_FILE

View File

@@ -60,15 +60,6 @@ if npm run dist; then
APP_SHA256=$(cat ${OUT_FILE}.sha256 | awk '{print $1;}') APP_SHA256=$(cat ${OUT_FILE}.sha256 | awk '{print $1;}')
rm -f upload_response.json 1>/dev/null 2>&1 rm -f upload_response.json 1>/dev/null 2>&1
curl --fail -F name="${OUT_FILE}" -F anonymous=true -F file="@${OUT_FILE}" https://pixeldrain.com/api/file > upload_response.json || exit_script "Upload to Pixeldrain failed"
PIXEL_SUCCESS=$(${JQ_EXEC} .success upload_response.json)
if [ "${PIXEL_SUCCESS}" = "false" ]; then
PIXEL_MESSAGE=$(${JQ_EXEC} .message upload_response.json)
exit_script "${PIXEL_MESSAGE}"
else
PIXEL_ID=$(${JQ_EXEC} .id upload_response.json|sed s/\"//g)
PIXEL_LOCATION=https://pixeldrain.com/api/file/${PIXEL_ID}
upload_to_bitbucket "${OUT_FILE}" upload_to_bitbucket "${OUT_FILE}"
upload_to_bitbucket "${OUT_FILE}.sha256" upload_to_bitbucket "${OUT_FILE}.sha256"
@@ -80,11 +71,10 @@ if npm run dist; then
${JQ_EXEC} ".Versions[\"${DISTRONAME}\"]|=(.+ [\"${APP_VER}\"]|unique)" releases.json > releases_temp.json || exit_script "Update releases.json Versions failed" ${JQ_EXEC} ".Versions[\"${DISTRONAME}\"]|=(.+ [\"${APP_VER}\"]|unique)" releases.json > releases_temp.json || exit_script "Update releases.json Versions failed"
${JQ_EXEC} ".Locations[\"${DISTRONAME}\"].\"${APP_VER}\".sig=\"${APP_SIG}\"" releases_temp.json > releases.json || exit_script "Update releases.json sig failed" ${JQ_EXEC} ".Locations[\"${DISTRONAME}\"].\"${APP_VER}\".sig=\"${APP_SIG}\"" releases_temp.json > releases.json || exit_script "Update releases.json sig failed"
${JQ_EXEC} ".Locations[\"${DISTRONAME}\"].\"${APP_VER}\".sha256=\"${APP_SHA256}\"" releases.json > releases_temp.json || exit_script "Update releases.json sha256 failed" ${JQ_EXEC} ".Locations[\"${DISTRONAME}\"].\"${APP_VER}\".sha256=\"${APP_SHA256}\"" releases.json > releases_temp.json || exit_script "Update releases.json sha256 failed"
${JQ_EXEC} ".Locations[\"${DISTRONAME}\"].\"${APP_VER}\".urls=[\"${PIXEL_LOCATION}\",\"${BITBUCKET_LOCATION}\"]" releases_temp.json > releases.json || exit_script "Update releases.json URL failed" ${JQ_EXEC} ".Locations[\"${DISTRONAME}\"].\"${APP_VER}\".urls=[\"${BITBUCKET_LOCATION}\"]" releases_temp.json > releases.json || exit_script "Update releases.json URL failed"
done done
rm -f releases_temp.json rm -f releases_temp.json
fi fi
fi
cd - cd -
else else
exit_script "Create dist failed" exit_script "Create dist failed"