Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix release and sign scripts #1548

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading