Skip to content

Commit

Permalink
Add Periphery artifactbundle.zip to release (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
rock88 authored May 20, 2024
1 parent 86c62c5 commit 6868c96
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
15 changes: 15 additions & 0 deletions scripts/artifactbundle_info.json.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"schemaVersion": "1.0",
"artifacts": {
"periphery": {
"version": "__VERSION__",
"type": "executable",
"variants": [
{
"path": "periphery",
"supportedTriples": ["x86_64-apple-macosx", "arm64-apple-macosx"]
}
]
}
}
}
13 changes: 12 additions & 1 deletion scripts/release
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ confirm "\nContinue?"

cat scripts/Version.swift.template | sed s/__VERSION__/${version}/ > Sources/Frontend/Version.swift
cat scripts/Periphery.podspec.template | sed s/__VERSION__/${version}/ > Periphery.podspec
cat scripts/artifactbundle_info.json.template | sed s/__VERSION__/${version}/ > info.json

echo -e "\nUpdate CHANGELOG.md"
confirm "Continue?"
Expand All @@ -48,6 +49,7 @@ rm -rf .release
mkdir .release
cp "$bin_path" .release/
cp LICENSE.md .release/
cp info.json .release/
cp scripts/release_notes.md.template .release/release_notes.md

# Codesign
Expand All @@ -63,8 +65,17 @@ echo -e "\n${zip_filename} checksum:"
sha256=$( shasum -a 256 ${zip_filename} | awk '{print $1}' )
echo ${sha256}

zip_artifactbundle="periphery-${version}.artifactbundle.zip"
zip "${zip_artifactbundle}" periphery LICENSE.md info.json
codesign "${zip_artifactbundle}"

echo -e "\n${zip_artifactbundle} checksum:"
sha256=$( shasum -a 256 ${zip_artifactbundle} | awk '{print $1}' )
echo ${sha256}

# Notarize
notarize "${zip_filename}"
notarize "${zip_artifactbundle}"

echo -e "\nVerify changes"
confirm "Continue?"
Expand All @@ -85,7 +96,7 @@ echo
confirm "Continue?"

cd ..
gh release create -F .release/release_notes.md "${version}" ".release/${zip_filename}"
gh release create -F .release/release_notes.md "${version}" ".release/${zip_filename}" ".release/${zip_artifactbundle}"

# HomeBrew
cd ../homebrew-periphery
Expand Down

0 comments on commit 6868c96

Please sign in to comment.