Skip to content

Commit

Permalink
Add libhydrogen.dll for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gurpreet- committed Aug 5, 2019
1 parent 5acc562 commit 323fb9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/java/co/libly/hydride/utils/LibraryLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,15 @@ private static boolean isPosixCompliant() {
}

// VisibleForTesting
static File createTempDirectory() throws IOException {
static File createTempDirectory() {
String tempDir = System.getProperty("java.io.tmpdir");
File hydrideDirectory = new File(tempDir, "hydride");
if (hydrideDirectory.mkdir()) {
hydrideDirectory.deleteOnExit();
}
hydrideDirectory.mkdir();
hydrideDirectory.deleteOnExit();
return hydrideDirectory;
}

public void setPermissions(File file) throws IOException{
private void setPermissions(File file) throws IOException{
Set<PosixFilePermission> perms = new HashSet<>();
perms.add(PosixFilePermission.OWNER_READ);
perms.add(PosixFilePermission.OWNER_WRITE);
Expand Down
Binary file added src/main/resources/windows/libhydrogen.dll
Binary file not shown.
Binary file added src/main/resources/windows64/libhydrogen.dll
Binary file not shown.

0 comments on commit 323fb9c

Please sign in to comment.