Skip to content

Commit dc32231

Browse files
committed
Added support for windows
1 parent 8e0eb01 commit dc32231

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group 'lemonjava'
7-
version '1.0-SNAPSHOT'
7+
version '2.0-SNAPSHOT'
88

99
sourceCompatibility = 1.8
1010

src/main/java/org/lemonjava/Library.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public class Library {
3232
suffix = "-linux-amd64.so";
3333
} else if (arch64 && osx) {
3434
suffix = "-osx-amd64.dylib";
35-
} else if (windows) {
36-
throw new IllegalArgumentException("Windows not supported!");
35+
} else if (arch64 && windows) {
36+
suffix = "-win-amd64.dll";
3737
} else {
3838
throw new IllegalStateException("Couldn't find lib for lemonc");
3939
}
749 KB
Binary file not shown.

0 commit comments

Comments
 (0)