-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
11 changed files
with
295 additions
and
72 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,73 @@ | ||
name: Build | ||
|
||
on: | ||
[push] | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
outputs: | ||
artifact-version: ${{ steps.setversion.outputs.version }} | ||
env: | ||
BUILD_VERSION: SNAPSHOT | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 14 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Ensure to use tagged version | ||
run: mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/} # use shell parameter expansion to strip of 'refs/tags' | ||
if: startsWith(github.ref, 'refs/tags/') | ||
- name: Export the project version to the job environment and fix it as an ouput of this job | ||
id: setversion | ||
run: | | ||
v=$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout) | ||
echo "::set-env name=BUILD_VERSION::${v}" | ||
echo "::set-output name=version::${v}" | ||
- name: Build and Test | ||
run: mvn -B install | ||
- name: Upload snapshot artifact cryptomator-cli-${{ env.BUILD_VERSION }}.jar | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: cryptomator-cli-${{ env.BUILD_VERSION }}.jar | ||
path: target/cryptomator-cli-*.jar | ||
|
||
release: | ||
name: Draft a Release on GitHub Releases and uploads the build artifacts to it | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: startsWith(github.ref, 'refs/tags/') | ||
steps: | ||
- name: Download cryptomator-cli.jar | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: cryptomator-cli-${{ needs.build.outputs.artifact-version }}.jar | ||
path: . | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
body: | | ||
:construction: Work in Progress | ||
draft: true | ||
prerelease: false | ||
- name: Upload cryptomator-cli-${{ needs.build.outputs.artifact-version }}.jar to GitHub Releases | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: cryptomator-cli-${{ needs.build.outputs.artifact-version }}.jar | ||
asset_name: cryptomator-cli-${{ needs.build.outputs.artifact-version }}.jar | ||
asset_content_type: application/jar |
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 |
---|---|---|
|
@@ -17,3 +17,5 @@ test-output/ | |
out/ | ||
.idea_modules/ | ||
*.iws | ||
|
||
*.iml |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,64 @@ | ||
[![Build Status](https://travis-ci.org/cryptomator/cli.svg?branch=develop)](https://travis-ci.org/cryptomator/cli) | ||
[![Build](https://github.com/cryptomator/cli/workflows/Build/badge.svg)](https://github.com/cryptomator/cli/actions?query=workflow%3ABuild) | ||
[![Latest Release](https://img.shields.io/github/release/cryptomator/cli/all.svg)](https://github.com/cryptomator/cli/releases/latest) | ||
|
||
# Cryptomator CLI version | ||
# Cryptomator CLI | ||
|
||
This is a minimal command line program which unlocks vaults, which can then be accessed via an embedded WebDAV server. | ||
This is a minimal command-line program that unlocks vaults which can then be accessed via an embedded WebDAV server. | ||
|
||
## Disclaimer | ||
|
||
This project is in an early stage and not ready for production use. We recommend to use it only for testing and evaluation purposes. | ||
|
||
## Download and Usage | ||
|
||
Download the jar file via [GitHub Releases](https://github.com/cryptomator/cli/releases) | ||
Download the jar file via [GitHub Releases](https://github.com/cryptomator/cli/releases). | ||
|
||
Cryptomator CLI depends on a Java 8 JRE. In addition the JCE unlimited strength policy files (needed for 256-bit keys) must be installed. | ||
Cryptomator CLI requires that at least JDK 11 is present on your system. | ||
|
||
```sh | ||
java -jar cryptomator-cli-x.y.z.jar \ | ||
--vault demoVault=/path/to/vault --password demoVault=topSecret \ | ||
--vault otherVault=/path/to/differentVault --passwordfile otherVault=/path/to/fileWithPassword \ | ||
--bind 0.0.0.0 --port 8080 | ||
--bind 127.0.0.1 --port 8080 | ||
# you can now mount http://localhost:8080/demoVault/ | ||
``` | ||
|
||
Then you can access the vault using any WebDAV client. | ||
|
||
### Linux via davfs2 | ||
|
||
First, you need to create a mount point for your vault | ||
|
||
```sh | ||
sudo mkdir /media/your/mounted/folder | ||
``` | ||
|
||
Then you can mount the vault | ||
|
||
```sh | ||
sudo mount -t davfs http://localhost:8080/demoVault/ /media/your/mounted/folder | ||
``` | ||
|
||
To unmount the vault, run | ||
|
||
```sh | ||
sudo umount /media/your/mounted/folder | ||
``` | ||
|
||
### macOS via AppleScript | ||
|
||
Mount the vault with | ||
|
||
```sh | ||
osascript -e 'mount volume "http://localhost:8080/demoVault/"' | ||
``` | ||
|
||
Unmount the vault with | ||
|
||
```sh | ||
osascript -e 'tell application "Finder" to if "demoVault" exists then eject "demoVault"' | ||
``` | ||
|
||
## License | ||
|
||
This project is dual-licensed under the AGPLv3 for FOSS projects as well as a commercial license derived from the LGPL for independent software vendors and resellers. If you want to use this library in applications, that are *not* licensed under the AGPL, feel free to contact our [support team](https://cryptomator.org/help/). |
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
Oops, something went wrong.