Skip to content

Commit

Permalink
Merge #1548: fix release and sign scripts
Browse files Browse the repository at this point in the history
edd1336 fix release and sign scripts (edouardparis)

Pull request description:

  * Use LIANA_PREFIX var everywhere
  * Remove capital letter from macos binaries.
  * Add macos to .zip title

ACKs for top commit:
  edouardparis:
    Self-ACK edd1336

Tree-SHA512: 9bc6941cf0a0f563b5caec7c924394e6e54a310e0e854409520e01e93d52a3bad8dc5d882b730d4e00f9663fb11a46c7d98965b27244ce61afcdd52d58b12b28
  • Loading branch information
edouardparis committed Jan 20, 2025
2 parents 6aed1cb + edd1336 commit c16237d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions contrib/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ NIX_BUILD_DIR="$(nix path-info .#release)"
unzip ../contrib/release/debian/package.zip
sed -i "s/VERSION_PLACEHOLDER/$VERSION/g" ./package/DEBIAN/control
cp "$BUILD_DIR/x86_64-unknown-linux-gnu/release/lianad" "$BUILD_DIR/x86_64-unknown-linux-gnu/release/liana-cli" "$BUILD_DIR/x86_64-unknown-linux-gnu/release/liana-gui" ../README.md ./package/usr/bin/
DIRNAME="liana_$VERSION-1_amd64"
DIRNAME="$LIANA_PREFIX-1_amd64"
mv ./package "$DIRNAME"
dpkg-deb -Zxz --build --root-owner-group "$DIRNAME"
mv "$DIRNAME.deb" "$RELEASE_DIR"
Expand Down Expand Up @@ -84,8 +84,8 @@ NIX_BUILD_DIR="$(nix path-info .#release)"
unzip ../contrib/release/macos/Liana.app.zip
sed -i "s/VERSION_PLACEHOLDER/$VERSION/g" ./Liana.app/Contents/Info.plist
cp "$NIX_BUILD_DIR/universal2-apple-darwin/liana-gui" ./Liana.app/Contents/MacOS/Liana
zip_archive "Liana-$VERSION-noncodesigned.zip" Liana.app
mv "Liana-$VERSION-noncodesigned.zip" "$RELEASE_DIR/"
zip_archive "$LIANA_PREFIX-macos-noncodesigned.zip" Liana.app
mv "$LIANA_PREFIX-macos-noncodesigned.zip" "$RELEASE_DIR/"
)
find "$RELEASE_DIR" -type f ! -name "$LIANA_PREFIX-shasums.txt" -exec sha256sum {} + | sed "s|$RELEASE_DIR/||" | tee "$RELEASE_DIR/$LIANA_PREFIX-shasums.txt"
Expand Down
6 changes: 3 additions & 3 deletions contrib/release/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ sign_with_rcodesign() {
--api-key-path "$NOTARY_API_CREDS_FILE" \
--staple Liana.app

zip_archive "Liana-$VERSION.zip" Liana.app
mv "Liana-$VERSION.zip" "$RELEASE_DIR/"
sha256sum "$RELEASE_DIR/Liana-$VERSION.zip" | tee -a "$RELEASE_DIR/$LIANA_PREFIX-shasums.txt"
zip_archive "$LIANA_PREFIX-macos.zip" Liana.app
mv "$LIANA_PREFIX-macos.zip" "$RELEASE_DIR/"
sha256sum "$RELEASE_DIR/$LIANA_PREFIX-macos.zip" | sed "s|$RELEASE_DIR/||" | tee -a "$RELEASE_DIR/$LIANA_PREFIX-shasums.txt"
}

if [ "$#" -lt 1 ]; then
Expand Down

0 comments on commit c16237d

Please sign in to comment.