Skip to content

Commit

Permalink
Use certutil on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Aug 27, 2024
1 parent bc732da commit 2608536
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,12 @@ case $OS in
ARCHIVE=$DIST/just-$VERSION-$TARGET.tar.gz
tar czf $ARCHIVE *
echo "archive=$ARCHIVE" >> $GITHUB_OUTPUT
shasum -a 256 $ARCHIVE > $ARCHIVE.sha256sum
;;
windows-latest)
ARCHIVE=$DIST/just-$VERSION-$TARGET.zip
7z a $ARCHIVE *
echo "archive=`pwd -W`/just-$VERSION-$TARGET.zip" >> $GITHUB_OUTPUT
certutil -hashfile $ARCHIVE SHA256 > $ARCHIVE.sha256sum
;;
esac

echo "Creating release .sha256sum..."
shasum -a 256 $ARCHIVE > $ARCHIVE.sha256sum

0 comments on commit 2608536

Please sign in to comment.