Skip to content

Commit

Permalink
Use apparent size instead of disk size (so we have the exact same out…
Browse files Browse the repository at this point in the history
…put compared to 7zip)
  • Loading branch information
sailro committed May 15, 2024
1 parent 3b8a173 commit a9e5661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
run: |
export LC_NUMERIC="en_US.UTF-8"
file_name=${{ env.PUBLISH_PATH }}Installer.exe
file_size=`du --block-size="'1" "$file_name" | cut -f1`
file_size_mib=`du --block-size="'MiB" "$file_name" | cut -f1 | sed s/M/\ M/`
file_size=`du --block-size="'1" --apparent-size "$file_name" | cut -f1`
file_size_mib=`du --block-size="'MiB" --apparent-size "$file_name" | cut -f1 | sed s/M/\ M/`
file_size_display="$file_size bytes ($file_size_mib)"
file_sha256=`sha256sum "$file_name" | cut -d" " -f1`
version=`echo ${{ github.head_ref || github.ref_name }} | cut -d- -f2`
Expand Down

0 comments on commit a9e5661

Please sign in to comment.