mirror of
https://github.com/jtheoof/swappy.git
synced 2024-10-05 19:07:41 +03:00
build(release): update release script
Github has (it seems) updated the way to generate the `tar.gz` file. I can't reverse engineer the way they do it, but they seem to do more than just `git archive` now.
This commit is contained in:
parent
689309b55a
commit
6c410c05a1
@ -49,13 +49,15 @@ verify_sha256_checksums() {
|
||||
sign_release_source() {
|
||||
echo "signing source assets..."
|
||||
cd $release_folder
|
||||
gpg --output $app_name-$version.tar.gz.sig --detach-sign github-$app_name-$version.tar.gz
|
||||
gpg --output $app_name-$version.tar.gz.sig --detach-sign local-$app_name-$version.tar.gz
|
||||
}
|
||||
|
||||
upload_signed_assets_to_release() {
|
||||
echo "uploading signatures to github release..."
|
||||
echo "uploading signature and archive to github release..."
|
||||
cd $release_folder
|
||||
cp local-$app_name-$version.tar.gz $app_name-$version.tar.gz
|
||||
gh release upload v$version $app_name-$version.tar.gz.sig --clobber
|
||||
gh release upload v$version $app_name-$version.tar.gz --clobber
|
||||
}
|
||||
|
||||
|
||||
@ -69,8 +71,11 @@ main() {
|
||||
fi
|
||||
|
||||
build_archives_from_source
|
||||
download_source_for_release
|
||||
verify_sha256_checksums
|
||||
# Turning off manual downloading from github
|
||||
# It looks like the tar.gz from github is generated in a non-standard way
|
||||
# but I couldn't find proper documenation on this
|
||||
#download_source_for_release
|
||||
#verify_sha256_checksums
|
||||
sign_release_source
|
||||
upload_signed_assets_to_release
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user