Skip to content

Commit

Permalink
Merge pull request #1 from Seph29/master
Browse files Browse the repository at this point in the history
Support de MacOS M1 + Ventura
  • Loading branch information
DantSu authored Dec 18, 2023
2 parents 285d1cd + 026fb7a commit 7560ca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions driver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
<artifactId>usb4java</artifactId>
<version>1.3.0</version>
</dependency>

<dependency>
<groupId>io.github.dsheirer</groupId>
<artifactId>libusb4java-darwin-aarch64</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand All @@ -38,4 +42,4 @@
</dependencies>


</project>
</project>
2 changes: 1 addition & 1 deletion driver/src/main/java/studio/driver/fs/DeviceUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static List<Path> listMountPoints() {
// Unix & Mac
for (FileStore f : fs.getFileStores()) {
// Mounted devices only (without Fuse, Loopback...)
if (f.name().startsWith("/dev/s") || f.name().startsWith("/dev/disk")) {
if (f.name().startsWith("/dev/s") || f.name().startsWith("/dev/disk") || f.name().startsWith("msdos")) {
// find mount path in toString()
l.add(Path.of(f.toString().split(" ")[0]));
}
Expand Down

0 comments on commit 7560ca5

Please sign in to comment.