Skip to content

Commit

Permalink
chore: prep for beta
Browse files Browse the repository at this point in the history
  • Loading branch information
logicalmechanism committed Jan 8, 2025
1 parent de5d5b8 commit 5d31be2
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ jobs:
This release includes binaries and checksums for Linux, Windows, and macOS.
Get the [release key here](https://github.com/logical-mechanism/Seedelf-Wallet/blob/main/util/pubkeys/seedelfwallet.asc)
Get the [release key here](https://github.com/logical-mechanism/Seedelf-Wallet/blob/main/util/pubkeys/seedelfwallet.asc).
Thank you for using `seedelf-cli`
Thank you for using `seedelf-cli`.
If you encounter any issues, please report them [here](https://github.com/logical-mechanism/Seedelf-Wallet/issues).
generate_release_notes: true
Expand Down
6 changes: 3 additions & 3 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Change the version then run the command in the parent folder.

```bash
# set the version
version="0.3.6"
version="0.4.0"
# update the toml files
sed -i '0,/^version = ".*"/s//version = "'${version}'"/' seedelf-contracts/aiken.toml
sed -i '0,/^version = ".*"/s//version = "'${version}'"/' seedelf-cli/Cargo.toml
Expand All @@ -27,14 +27,14 @@ cd ..

## Recompiling

If a recompile is required to change the contract hashes, then the `seedelf-contracts/README.md` must be updated to reflect the changes.
If a recompile is required and the contract hashes change then the [seedelf-contracts/README.md](./seedelf-contracts/README.md) must be updated to reflect the changes.

## Re-releasing Tag

Removing a tagged release involves deleting it locally and deleting the tagged branch.

```bash
version="0.3.6"
version="0.4.0"
git tag -d ${version}
git push origin --delete ${version}
```
2 changes: 1 addition & 1 deletion seedelf-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "seedelf-cli"
version = "0.3.6"
edition = "2021"
license = "MIT"
description = "A CLI for the Seedelf Wallet"
description = "Seedelf: A Cardano Stealth Wallet"
authors = ["Logical Mechanism LLC <support@logicalmechanism.io>"]
repository = "https://github.com/logical-mechanism/Seedelf-Wallet"

Expand Down
2 changes: 1 addition & 1 deletion seedelf-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The `seedelf-cli` is a Rust implementation of the Seedelf stealth wallet protocol. It uses [Cardano collateral provider](https://giveme.my/), [Koios](https://www.koios.rest/), and [Pallas](https://github.com/txpipe/pallas). The wallet is primarily terminal-base but it does use a static HTML web interface for CIP30 interactions when required.

**Note: Wallet Is Currently In Alpha**
**Note: Wallet Is Currently In Beta**

## Installation

Expand Down
2 changes: 1 addition & 1 deletion seedelf-contracts/aiken.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version = "0.3.6"
compiler = "v1.1.9"
plutus = "v3"
license = "MIT"
description = "A Cardano Stealth Wallet"
description = "Seedelf: A Cardano Stealth Wallet"

[repository]
user = "logical-mechanism"
Expand Down
77 changes: 76 additions & 1 deletion util/seedelf-init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,79 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

# Detect OS and architecture
OS=$(uname -s)
ARCH=$(uname -m)

# Map OS and ARCH to your release asset naming convention
if [[ "$OS" == "Linux" ]]; then
OS="linux"
elif [[ "$OS" == "Darwin" ]]; then
OS="macos"
else
echo "Unsupported OS: $OS"
exit 1
fi

# Set install directory
INSTALL_DIR="$HOME/.local/bin"
mkdir -p "$INSTALL_DIR"

# Fetch the latest release URL
REPO="logical-mechanism/Seedelf-Wallet"
LATEST_URL=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | grep "browser_download_url" | grep "$OS" | cut -d '"' -f 4)

if [[ -z "$LATEST_URL" ]]; then
echo "Failed to find the latest release for $OS."
exit 1
fi

# Set install directory
INSTALL_DIR="$HOME/.local/bin"
mkdir -p "$INSTALL_DIR"

# Download binary
echo "Downloading $LATEST_URL..."
curl -L -o "$INSTALL_DIR/seedelf-cli.tar.gz" "$LATEST_URL"
echo "Extracting the binary..."
tar -xzf $INSTALL_DIR/seedelf-cli.tar.gz -C $INSTALL_DIR
chmod +x "$INSTALL_DIR/seedelf-cli"
rm "$INSTALL_DIR/seedelf-cli.sha256"

# Check if the binary directory is in PATH
if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
echo "Your binary was installed to $INSTALL_DIR, which is not in your PATH."

# Determine the user's shell
SHELL_NAME=$(basename "$SHELL")

case "$SHELL_NAME" in
bash)
PROFILE_FILE="$HOME/.bashrc"
;;
zsh)
PROFILE_FILE="$HOME/.zshrc"
;;
fish)
PROFILE_FILE="$HOME/.config/fish/config.fish"
;;
*)
PROFILE_FILE=""
;;
esac

if [[ -n "$PROFILE_FILE" ]]; then
echo "Adding $INSTALL_DIR to PATH in $PROFILE_FILE..."
echo "export PATH=\"$INSTALL_DIR:\$PATH\"" >> "$PROFILE_FILE"
echo "Run 'source $PROFILE_FILE' or restart your terminal to apply the changes."
else
echo "Could not determine your shell's configuration file."
echo "Please add the following line to your shell's configuration file manually:"
echo " export PATH=\"$INSTALL_DIR:\$PATH\""
fi
else
echo "Installation complete. You can now run 'seedelf-cli'."
fi

# Detect OS and architecture
OS=$(uname -s)
Expand Down

0 comments on commit 5d31be2

Please sign in to comment.