mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Report filesize in bytes
This commit is contained in:
parent
8f965ccd48
commit
794a1fef1d
@ -37,12 +37,12 @@ if [ "$DEPLOY_APPIMAGE" = "true" ]; then
|
||||
|
||||
mv ./RPCS3*.AppImage rpcs3-${COMM_TAG}-${COMM_COUNT}-${TRAVIS_COMMIT:0:8}_linux64.AppImage
|
||||
|
||||
FILESIZEMB=$(bc <<< "scale=6; $(stat -c %s ./rpcs3*.AppImage)/1000000")
|
||||
FILESIZE=($(stat -c %s ./rpcs3*.AppImage))
|
||||
SHA256SUM=($(sha256sum ./rpcs3*.AppImage))
|
||||
|
||||
unset TRAVIS_REPO_SLUG
|
||||
REPO_SLUG=RPCS3/rpcs3-binaries-linux \
|
||||
UPLOADTOOL_BODY="$SHA256SUM;${FILESIZEMB}MB"\
|
||||
UPLOADTOOL_BODY="$SHA256SUM;${FILESIZE}B"\
|
||||
RELEASE_NAME=build-${TRAVIS_COMMIT}\
|
||||
RELEASE_TITLE=${COMM_TAG}-${COMM_COUNT}\
|
||||
REPO_COMMIT=d812f1254a1157c80fd402f94446310560f54e5f\
|
||||
|
@ -111,7 +111,7 @@ after_build:
|
||||
7z a -m0=LZMA2 -mx9 $env:BUILD .\bin\*
|
||||
7z a -m0=LZMA2 -mx9 openssl_win64.7z C:\OpenSSL-v111-Win64\bin\libcrypto-1_1-x64.dll `
|
||||
C:\OpenSSL-v111-Win64\bin\libssl-1_1-x64.dll
|
||||
$env:FILESIZEMB = (Get-Item $env:BUILD).length/1MB
|
||||
$env:FILESIZE = (Get-Item $env:BUILD).length
|
||||
|
||||
- ps: | # generate sha256 hashes
|
||||
(get-filehash $env:BUILD -algorithm SHA256).Hash | out-file ("{0}.sha256" -f $env:BUILD) -encoding ascii
|
||||
@ -133,7 +133,7 @@ artifacts:
|
||||
deploy:
|
||||
provider: GitHub
|
||||
# Description is a semi-colon seperated list for easy parsing
|
||||
description: "$(SHA256SUM);$(FILESIZEMB)MB"
|
||||
description: "$(SHA256SUM);$(FILESIZE)B"
|
||||
tag: build-$(APPVEYOR_REPO_COMMIT)
|
||||
release: $(AVVER)
|
||||
artifact: $(BUILD)
|
||||
|
Loading…
Reference in New Issue
Block a user