Skip to content

Commit

Permalink
Preparations for 2.0 release.
Browse files Browse the repository at this point in the history
Skip 1.0 release because Jar had already been published with version 1.1.x.
  • Loading branch information
renatoathaydes committed Apr 28, 2024
1 parent a08230e commit abf7b45
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
- target: x86_64-apple-darwin
os: macos-latest
build-tool: cargo-zigbuild
- target: x86_64-pc-windows-gnu
- target: x86_64-pc-windows-msvc
os: windows-latest
build-tool: cargo-zigbuild
build-tool: cargo
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0] - 2024-04-28
## [2.0.0] - 2024-04-28

### Changed

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import java.util.regex.Pattern

allprojects {
group = 'com.athaydes.jgrab'
version = '1.1.1'
version = '2.0.0'
}

tasks.register( 'localRelease' ) {
Expand Down
2 changes: 1 addition & 1 deletion jgrab-client/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jgrab-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

name = "jgrab-client"
version = "1.0.0"
version = "2.0.0"
authors = [ "Renato Athaydes" ]

[dependencies]
Expand Down
18 changes: 6 additions & 12 deletions releases/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# project's installer: https://rustup.rs/

# This is just a little script that can be curled from the internet to
# install JGrab. It just does platform detection, curls the JGrab client
# executable and the Java daemon's jar.
# install JGrab. It just does platform detection and curls the JGrab client
# executable.

set -u

JGRAB_BASE_URL="https://github.com/renatoathaydes/jgrab/releases/download"
JGRAB_JAR_URL="https://repo1.maven.org/maven2/com/athaydes/jgrab/jgrab-runner/1.1.1/jgrab-runner-1.1.1-fat-jar.jar"
JGRAB_CLIENT_TAG="v2.0.0"

usage() {
cat 1>&2 <<EOF
Expand Down Expand Up @@ -56,12 +56,10 @@ main() {
;;
esac

local _version="v0.6.0"
local _url="$JGRAB_BASE_URL/$_version/jgrab-client-$_version-$_arch$_zip_ext"
local _url="$JGRAB_BASE_URL/$JGRAB_CLIENT_TAG/jgrab-client-$JGRAB_CLIENT_TAG-$_arch$_zip_ext"

local _dir="$(mktemp -d 2>/dev/null || ensure mktemp -d -t jgrab)"
local _client_file="$_dir/jgrab-client$_zip_ext"
local _jar_file="$_dir/jgrab.jar"

local _ansi_escapes_are_valid=false
if [ -t 2 ]; then
Expand Down Expand Up @@ -106,8 +104,6 @@ main() {
printf '%s\n' 'info: downloading JGrab Java Daemon' 1>&2
fi

ensure curl -sSfL "$JGRAB_JAR_URL" -o "$_jar_file"

local _jgrab_home="$HOME/.jgrab"

ignore mkdir "$_jgrab_home"
Expand All @@ -121,8 +117,6 @@ main() {
;;
esac

mv "$_jar_file" "$_jgrab_home"

say "Installed JGrab at $_jgrab_home"
say "Use the jgrab-client to run the native Rust client, or the jar to run JGrab only using Java:"
ls "$_jgrab_home"
Expand Down Expand Up @@ -217,7 +211,7 @@ get_architecture() {
;;

MINGW* | MSYS* | CYGWIN*)
local _ostype=pc-windows-gnu
local _ostype=pc-windows-msvc
;;

*)
Expand Down Expand Up @@ -257,7 +251,7 @@ get_architecture() {
fi
;;

aarch64)
aarch64 | arm64)
local _cputype=aarch64
;;

Expand Down

0 comments on commit abf7b45

Please sign in to comment.