Skip to content

build & install on debian #7

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,44 @@ For more information please use the online help in the board editor. From here y

If you have further questions or want some feedback, please sent an Email to support@ FreeRouting.net or visit our forum.


#Use on Debian:

need a JABA soft from oracle

check here:

https://wiki.debian.org/Java/
or

https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps

need build deps:

```
apt-get isntall javahelp2 icedtea-netx-common
```

now clone and run

```
bash build.sh

bash install.sh
```

and use it:
```
/opt/freerouter/run.sh
```
or
```
/opt/freerouter/runp.sh file.dsn
```

##Kicad


Additional steps for users of CadSoft-Eagle:
============================================

Expand Down
13 changes: 13 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#build deps
#deb's: javahelp2 icedtea-netx-common

ADD_JABA_CLASSPATH=/usr/share/java/jh.jar:/usr/share/icedtea-web/netx.jar

JABA_FLIST=`find -type f -name "*.java"`


javac -classpath $ADD_JABA_CLASSPATH $JABA_FLIST

PROP_LIST=`find -type f \( -name "*.class" -o -name "*.properties" \)`

jar cfe fr.jar gui.MainApplication $PROP_LIST
14 changes: 14 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

TARGET_DIR=/opt/freerouter

mkdir -p $TARGET_DIR/bin
cp fr.jar $TARGET_DIR/bin

cp run.sh $TARGET_DIR
cp runp.sh $TARGET_DIR

chmod o+x $TARGET_DIR/run.sh
chmod o+x $TARGET_DIR/runp.sh


echo "installed in" $TARGET_DIR
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

java -jar /opt/freerouter/bin/fr.jar
5 changes: 5 additions & 0 deletions runp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

PRJ_DSN=$1

java -jar /opt/freerouter/bin/fr.jar -de $PRJ_DSN