From 794a1fef1daefffc7194d083b2735842af052bc9 Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Mon, 16 Sep 2019 03:24:06 +0200 Subject: [PATCH] Report filesize in bytes --- .travis/deploy-linux.bash | 4 ++-- appveyor.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis/deploy-linux.bash b/.travis/deploy-linux.bash index a96d5f8ca5..5b0628b845 100644 --- a/.travis/deploy-linux.bash +++ b/.travis/deploy-linux.bash @@ -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\ diff --git a/appveyor.yml b/appveyor.yml index fbdd55bd82..56f800ab12 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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)