diagrammer icon indicating copy to clipboard operation
diagrammer copied to clipboard

Is there binary release?

Open Aerotic opened this issue 4 years ago • 4 comments

Hope for executable binary for ubuntu

Aerotic avatar Apr 03 '20 11:04 Aerotic

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).

seldridge avatar Apr 03 '20 15:04 seldridge

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

chick avatar Apr 03 '20 16:04 chick

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 avatar Apr 04 '20 09:04 Aerotic

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!

Aerotic avatar Apr 04 '20 09:04 Aerotic