v0.0.24 - Merged static musl build feature and fixed release tag ordering
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "signer"
|
||||
version = "0.0.23"
|
||||
version = "0.0.24"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
description = "Attended Nostr signing daemon — Rust port of n_signer"
|
||||
|
||||
+11
-14
@@ -145,6 +145,17 @@ git_commit_and_push() {
|
||||
print_warning "No changes to commit"
|
||||
fi
|
||||
|
||||
# Tag AFTER committing so the tag points at the release commit itself,
|
||||
# not its parent. (Tagging before the commit caused every tag to lag by
|
||||
# one commit.)
|
||||
if git tag "$NEW_VERSION" > /dev/null 2>&1; then
|
||||
print_success "Created tag: $NEW_VERSION"
|
||||
else
|
||||
git tag -d "$NEW_VERSION" > /dev/null 2>&1 || true
|
||||
git tag "$NEW_VERSION" > /dev/null 2>&1
|
||||
print_success "Recreated tag: $NEW_VERSION"
|
||||
fi
|
||||
|
||||
git push
|
||||
git push origin "$NEW_VERSION" 2>/dev/null || git push --force origin "$NEW_VERSION" 2>/dev/null || true
|
||||
}
|
||||
@@ -271,13 +282,6 @@ main() {
|
||||
if [[ "$RELEASE_MODE" == true ]]; then
|
||||
increment_version "$VERSION_INCREMENT_TYPE"
|
||||
|
||||
if git tag "$NEW_VERSION" > /dev/null 2>&1; then
|
||||
print_success "Created tag: $NEW_VERSION"
|
||||
else
|
||||
git tag -d "$NEW_VERSION" > /dev/null 2>&1 || true
|
||||
git tag "$NEW_VERSION" > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
if ! build_release_binary; then
|
||||
print_error "Release build failed; aborting before push/upload"
|
||||
exit 1
|
||||
@@ -313,13 +317,6 @@ main() {
|
||||
else
|
||||
increment_version "$VERSION_INCREMENT_TYPE"
|
||||
|
||||
if git tag "$NEW_VERSION" > /dev/null 2>&1; then
|
||||
print_success "Created tag: $NEW_VERSION"
|
||||
else
|
||||
git tag -d "$NEW_VERSION" > /dev/null 2>&1 || true
|
||||
git tag "$NEW_VERSION" > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
git_commit_and_push
|
||||
print_success "Increment and push completed: $NEW_VERSION"
|
||||
fi
|
||||
|
||||
+1
-1
@@ -31,4 +31,4 @@ pub mod error;
|
||||
pub use error::SignerError;
|
||||
|
||||
/// Version string (matches C NSIGNER_VERSION).
|
||||
pub const VERSION: &str = "v0.0.23";
|
||||
pub const VERSION: &str = "v0.0.24";
|
||||
|
||||
Reference in New Issue
Block a user