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

Is there binary release? #43

Open
Aerotic opened this issue Apr 3, 2020 · 4 comments
Open

Is there binary release? #43

Aerotic opened this issue Apr 3, 2020 · 4 comments

Comments

@Aerotic
Copy link

Aerotic commented Apr 3, 2020

Hope for executable binary for ubuntu

@seldridge
Copy link
Contributor

One approach is to use coursier to grab a binary. Once you have the coursier command line tool, you have two options.

You can download diagrammer and all its dependencies and launch it immediately:

coursier \
  launch \
  edu.berkeley.cs:firrtl-diagrammer_2.12:1.2.0-RC1 \
  --main-class dotvisualizer.FirrtlDiagrammer

Or, you can install a binary you can call later (here, -o diagrammer is installing this in an executable called "diagrammer"):

coursier \
  bootstrap \
  edu.berkeley.cs:firrtl-diagrammer_2.12:1.2.0-RC1 \
  --main-class dotvisualizer.FirrtlDiagrammer \
  -o diagrammer

You can vary which version you grab by changing the Scala version (2.12 above) or the published version (1.2.0-RC1 above, 1.1.4 would be another option).

@chick
Copy link
Contributor

chick commented Apr 3, 2020

Another approach is to build an executable jar. I just tried it on an ubuntu system.

> git clone https://github.com/freechipsproject/diagrammer.git
> cd diagrammer
> sbt assembly
> history
> ls -l utils/bin
total 21152
-rwxr-xr-x 1 chick was-aspire-all      200 Apr  3 08:39 diagrammer*
-rw-r--r-- 1 chick was-aspire-all 21652822 Apr  3 08:42 diagrammer.jar

You can put that jar and script somewhere else or just add diagrammer/utils/bin to your path

@Aerotic
Copy link
Author

Aerotic commented Apr 4, 2020

One approach is to use coursier to grab a binary. Once you have the coursier command line tool, you have two options.

You can download diagrammer and all its dependencies and launch it immediately:

coursier \
  launch \
  edu.berkeley.cs:firrtl-diagrammer_2.12:1.2.0-RC1 \
  --main-class dotvisualizer.FirrtlDiagrammer

Or, you can install a binary you can call later (here, -o diagrammer is installing this in an executable called "diagrammer"):

coursier \
  bootstrap \
  edu.berkeley.cs:firrtl-diagrammer_2.12:1.2.0-RC1 \
  --main-class dotvisualizer.FirrtlDiagrammer \
  -o diagrammer

You can vary which version you grab by changing the Scala version (2.12 above) or the published version (1.2.0-RC1 above, 1.1.4 would be another option).

thx for your reply :)

@Aerotic
Copy link
Author

Aerotic commented Apr 4, 2020

Another approach is to build an executable jar. I just tried it on an ubuntu system.

> git clone https://github.com/freechipsproject/diagrammer.git
> cd diagrammer
> sbt assembly
> history
> ls -l utils/bin
total 21152
-rwxr-xr-x 1 chick was-aspire-all      200 Apr  3 08:39 diagrammer*
-rw-r--r-- 1 chick was-aspire-all 21652822 Apr  3 08:42 diagrammer.jar

You can put that jar and script somewhere else or just add diagrammer/utils/bin to your path

thx for your reply, it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants