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

update to release 2.3.1 #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
**/*.log
/doc/
/pkg/
/spec/reports/
/tmp/
6 changes: 3 additions & 3 deletions tuweni.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
class Tuweni < Formula
desc "apache tuweni ethereum client"
homepage "https://github.com/apache/incubator-tuweni"
url "https://downloads.apache.org/incubator/tuweni/2.2.0-incubating/tuweni-bin-2.2.0-incubating.zip"
url "https://dlcdn.apache.org/incubator/tuweni/2.3.1-incubating/tuweni-bin-2.3.1-incubating.zip"
# update with: ./updateTuweni.sh <new-version>
sha256 "05a0f44672862b5ba1dc0b4515601b4c047e807d1823ba4a26d7131079e65506"
sha256 "368e9212cbc8284dbd1b3ab9d8b7f2e937e3499bafdc6bcdd8ba0e041c82db4f"

depends_on "openjdk" => "11+"

def install
prefix.install "lib"
bin.install "bin/tuweni"
bin.install "bin/jsonrpc"
# bin.install "bin/jsonrpc"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to remove this?

bin.install "bin/eth-faucet"
end

Expand Down
15 changes: 9 additions & 6 deletions updateTuweni.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
#!/bin/bash
#!/usr/bin/env bash

set -euo pipefail
TEMP=`mktemp -d`

function cleanup() {
function cleanup()
{
rm -rf "${TEMP}"
}

trap cleanup EXIT

VERSION=${1?Must specify the tuweni version to get}

URL="https://downloads.apache.org/incubator/tuweni/${VERSION}-incubating/tuweni-bin-${VERSION}-incubating.zip"
URL="https://dlcdn.apache.org/incubator/tuweni/${VERSION}-incubating/tuweni-bin-${VERSION}-incubating.zip"
echo "Downloading version ${VERSION} of tuweni from ${URL}..."
curl -o "${TEMP}/tuweni-${VERSION}.zip" -L --fail "${URL}"

unzip -t "${TEMP}/tuweni-${VERSION}.zip"
curl -o "${TEMP}/tuweni-${VERSION}.zip" -sL "${URL}"

echo "Calculating new hash..."
HASH=`shasum -a 256 ${TEMP}/tuweni-${VERSION}.zip | cut -d ' ' -f 1`

unzip -t "${TEMP}/tuweni-${VERSION}.zip"

cat > tuweni.rb <<EOF
class Tuweni < Formula
desc "apache tuweni ethereum client"
Expand Down