Skip to content

Commit 953dcfb

Browse files
committed
Merge remote-tracking branch 'github-aadrian/patch_3' into master
# Conflicts: # build.gradle
2 parents 135f79b + 3771d30 commit 953dcfb

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,21 @@ Download
4545
[markdown-writer-fx-0.10.zip](https://github.com/JFormDesigner/markdown-writer-fx/releases/download/0.10/markdown-writer-fx-0.10.zip)
4646
and extract it to any folder.
4747

48-
Double-click `markdown-writer-fx.jar` to start *Markdown Writer FX*.
48+
Run:
49+
- for Windows, ```bin/markdown-writer-fx.bat``` to start *Markdown Writer FX*
50+
- and for Unix systems ```./bin/markdown-writer-fx.sh``` to start *Markdown Writer FX*
4951

50-
If this does not work, try following command in a terminal window:
52+
from the project folder.
5153

54+
Building
55+
-------
56+
Prerequisites are Java 8 and Gradle >= 3.5 in order to build *Markdown Writer FX* form sources.
57+
- get the source, e.g. by cloning the official repo with:
58+
```bash
59+
git clone https://github.com/JFormDesigner/markdown-writer-fx.git
5260
```
53-
java -jar markdown-writer-fx.jar
54-
```
61+
- run ```gradle assembleDist``` to create the distribution in the ```$project/build/distributions/``` folder.
62+
5563

5664
Changes
5765
-------

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version = '0.10'
22

33
apply plugin: 'java'
4-
apply plugin: 'java-library-distribution'
4+
apply plugin: 'application'
55

66
repositories {
77
jcenter()
@@ -45,10 +45,12 @@ dependencies {
4545
sourceCompatibility = 1.8
4646
targetCompatibility = 1.8
4747

48+
mainClassName = 'org.markdownwriterfx.MarkdownWriterFXApp'
49+
4850
jar {
4951
manifest {
5052
attributes( 'Main-Class': 'org.markdownwriterfx.MarkdownWriterFXApp',
51-
'Class-Path': configurations.compile.collect { 'lib/' + it.getName() }.join(' '),
53+
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
5254
'Implementation-Version': version
5355
)
5456
}

0 commit comments

Comments
 (0)