-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add release script * Add CHANGELOG.md * Amend installation instructions to state we use Rust 1.27
- Loading branch information
Showing
4 changed files
with
108 additions
and
5 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/target | ||
**/*.rs.bk | ||
/tests/tmp | ||
build | ||
*.vault |
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,27 @@ | ||
# Sigil | ||
Only user facing changes should be included. | ||
|
||
## Release series | ||
* **v0.x**: Sigil Alpha | ||
|
||
## v0.1.0 | ||
*Released on 2018/07/22* | ||
|
||
* Adopt a GPG-encrypted TOML file as the vault format | ||
* By default its location is defined by the `SIGIL_VAULT` environment variable | ||
* By default it is encripted using the `SIGIL_GPGKEY` environment variable | ||
* Use `sigil touch` to create an empty vault | ||
* Use `sigil ls` to list all secrets in a vault | ||
* Use `sigil completion` to generate a completion script | ||
* Support for password storing | ||
* Allow to annotate passwords with related usernames, emails and homepage URLs | ||
* Use `sigil password add` to add a password | ||
* Use `sigil password get` to retrieve a password | ||
* Use `sigil password rm` ro remove a password | ||
* Support for OTP generator storing | ||
* Support TOTP and HOTP for token generation | ||
* Support SHA1, SHA256 and SHA512 as HMAC algorithms for token generation | ||
* Use `sigil otp add` to add a generator | ||
* Use `sigil otp token` to generate a token | ||
* Use `sigil otp rm` to remove a generator | ||
* Use `sigil otp import` to import generators from `otpauth://` URLs |
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,73 @@ | ||
#!/bin/bash | ||
# Copyright (C) 2018 Alberto Coscia | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
TARGET_DIR="./target" | ||
BUILD_DIR="./build" | ||
BIN_NAME="sigil" | ||
RELEASE_NAME="$BIN_NAME-$1" | ||
RELEASE_DIR="$BUILD_DIR/$RELEASE_NAME" | ||
|
||
INCLUDE=( | ||
"LICENSE" | ||
"CHANGELOG.md" | ||
"README.md" | ||
) | ||
|
||
init() { | ||
echo "" | ||
echo "Initializing..." | ||
rm -r "$BUILD_DIR" | ||
mkdir -p "$TARGET_DIR" | ||
mkdir -p "$RELEASE_DIR" | ||
} | ||
|
||
build() { | ||
echo "Building..." | ||
cargo +stable build --release | ||
strip --strip-debug "$TARGET_DIR/release/$BIN_NAME" | ||
cp -v "$TARGET_DIR/release/$BIN_NAME" "$RELEASE_DIR" | ||
} | ||
|
||
enrich() { | ||
echo "" | ||
echo "Copying additional files..." | ||
for src in "${INCLUDE[@]}"; do | ||
cp -v "./$src" "$RELEASE_DIR" | ||
done | ||
} | ||
|
||
sizes() { | ||
echo "" | ||
echo "Uncompressed build size:" | ||
ls -1sh "$RELEASE_DIR" | ||
} | ||
|
||
package() { | ||
echo "" | ||
echo "Packaging, compressing and signing..." | ||
cd $BUILD_DIR | ||
tar -czvf "$RELEASE_NAME.tar.gz" "$RELEASE_NAME/" | ||
gpg --sign --detach --armor "$RELEASE_NAME.tar.gz" | ||
gpg --verify "$RELEASE_NAME.tar.gz.asc" "$RELEASE_NAME.tar.gz" | ||
echo "" | ||
echo "Compressed build size:" | ||
ls -1sh "$RELEASE_NAME.tar.gz" | ||
cd .. | ||
} | ||
|
||
cleanup() { | ||
echo "" | ||
echo "Cleaning up" | ||
rm -r "$RELEASE_DIR" | ||
} | ||
|
||
init | ||
build | ||
enrich | ||
sizes | ||
package | ||
cleanup |