-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
401 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "maven" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "monday" | ||
time: "06:00" | ||
timezone: "Etc/UTC" | ||
groups: | ||
java-test-dependencies: | ||
patterns: | ||
- "org.junit.jupiter:*" | ||
- "org.mockito:*" | ||
- "org.cryptomator:cryptofs" | ||
maven-build-plugins: | ||
patterns: | ||
- "org.apache.maven.plugins:*" | ||
- "org.jacoco:jacoco-maven-plugin" | ||
- "org.owasp:dependency-check-maven" | ||
- "org.sonatype.plugins:nexus-staging-maven-plugin" | ||
java-production-dependencies: | ||
patterns: | ||
- "*" | ||
exclude-patterns: | ||
- "org.junit.jupiter:*" | ||
- "org.mockito:*" | ||
- "org.cryptomator:cryptofs" | ||
- "org.apache.maven.plugins:*" | ||
- "org.jacoco:jacoco-maven-plugin" | ||
- "org.owasp:dependency-check-maven" | ||
- "org.sonatype.plugins:nexus-staging-maven-plugin" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" # even for `.github/workflows` | ||
schedule: | ||
interval: "monthly" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.cryptomator.frontend.fuse; | ||
|
||
enum OS { | ||
LINUX, | ||
MAC, | ||
WINDOWS, | ||
UNKNOWN; | ||
|
||
private static String osName() { | ||
class Holder { | ||
private static final String OS_NAME = System.getProperty("os.name", "").toLowerCase(); | ||
} | ||
return Holder.OS_NAME; | ||
} | ||
|
||
public static OS current() { | ||
var name = osName(); | ||
if (name.contains("linux")) { | ||
return LINUX; | ||
} else if (name.contains("mac")) { | ||
return MAC; | ||
} else if (name.contains("windows")) { | ||
return WINDOWS; | ||
} else { | ||
return UNKNOWN; | ||
} | ||
} | ||
|
||
public boolean isCurrent() { | ||
return equals(OS.current()); | ||
} | ||
} |
Oops, something went wrong.