mirror of
https://github.com/YunoHost-Apps/vaultwarden_ynh.git
synced 2024-09-03 18:26:31 +02:00
commit
0964c21174
3 changed files with 33 additions and 30 deletions
19
.github/workflows/updater.sh
vendored
19
.github/workflows/updater.sh
vendored
|
@ -9,9 +9,6 @@
|
||||||
# Since each app is different, maintainers can adapt its contents so as to perform
|
# Since each app is different, maintainers can adapt its contents so as to perform
|
||||||
# automatic actions when a new upstream release is detected.
|
# automatic actions when a new upstream release is detected.
|
||||||
|
|
||||||
# Remove this exit command when you are ready to run this Action
|
|
||||||
#exit 1
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# FETCHING LATEST RELEASE AND ITS ASSETS
|
# FETCHING LATEST RELEASE AND ITS ASSETS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -36,6 +33,7 @@ fi
|
||||||
echo "Current version: $current_version"
|
echo "Current version: $current_version"
|
||||||
echo "Latest release from upstream: $version"
|
echo "Latest release from upstream: $version"
|
||||||
echo "VERSION=$version" >> $GITHUB_ENV
|
echo "VERSION=$version" >> $GITHUB_ENV
|
||||||
|
echo "REPO=$repo" >> $GITHUB_ENV
|
||||||
# For the time being, let's assume the script will fail
|
# For the time being, let's assume the script will fail
|
||||||
echo "PROCEED=false" >> $GITHUB_ENV
|
echo "PROCEED=false" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
@ -68,43 +66,42 @@ for asset_url in ${assets[@]}; do
|
||||||
# Here we base the source file name upon a unique keyword in the assets url (admin vs. update)
|
# Here we base the source file name upon a unique keyword in the assets url (admin vs. update)
|
||||||
# Leave $src empty to ignore the asset
|
# Leave $src empty to ignore the asset
|
||||||
case $asset_url in
|
case $asset_url in
|
||||||
*"vaultwarden"*)
|
*"vaultwarden"*)
|
||||||
src="app"
|
src="app"
|
||||||
;;
|
;;
|
||||||
*"bw_web_builds"*)
|
*"bw_web_builds"*)
|
||||||
src="web"
|
src="web"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
src=""
|
src=""
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# If $src is not empty, let's process the asset
|
# If $src is not empty, let's process the asset
|
||||||
if [ ! -z "$src" ]; then
|
if [ ! -z "$src" ]; then
|
||||||
|
|
||||||
# Create the temporary directory
|
# Create the temporary directory
|
||||||
tempdir="$(mktemp -d)"
|
tempdir="$(mktemp -d)"
|
||||||
|
|
||||||
# Download sources and calculate checksum
|
# Download sources and calculate checksum
|
||||||
filename=${asset_url##*/}
|
filename=${asset_url##*/}
|
||||||
curl --silent -4 -L $asset_url -o "$tempdir/$filename"
|
curl --silent -4 -L $asset_url -o "$tempdir/$filename"
|
||||||
checksum=$(sha512sum "$tempdir/$filename" | head -c 64)
|
checksum=$(sha256sum "$tempdir/$filename" | head -c 64)
|
||||||
|
|
||||||
# Delete temporary directory
|
# Delete temporary directory
|
||||||
rm -rf $tempdir
|
rm -rf $tempdir
|
||||||
|
|
||||||
# Get extension
|
# Get extension
|
||||||
if [[ $filename == *.tar.gz ]]; then
|
if [[ $filename == *.tar.gz ]]; then
|
||||||
extension=tar.gz
|
extension=tar.gz
|
||||||
else
|
else
|
||||||
extension=${filename##*.}
|
extension=${filename##*.}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Rewrite source file
|
# Rewrite source file
|
||||||
cat <<EOT > conf/$src.src
|
cat <<EOT > conf/$src.src
|
||||||
SOURCE_URL=$asset_url
|
SOURCE_URL=$asset_url
|
||||||
SOURCE_SUM=$checksum
|
SOURCE_SUM=$checksum
|
||||||
SOURCE_SUM_PRG=sha512sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
SOURCE_FILENAME=
|
SOURCE_FILENAME=
|
||||||
|
|
19
README.md
19
README.md
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Vaultwarden for YunoHost
|
# Vaultwarden for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/vaultwarden)  
|
[](https://dash.yunohost.org/appci/app/vaultwarden)  
|
||||||
[](https://install-app.yunohost.org/?app=vaultwarden)
|
[](https://install-app.yunohost.org/?app=vaultwarden)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
@ -23,7 +23,7 @@ Alternative implementation of the Bitwarden server API written in Rust and compa
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
|
@ -49,21 +49,22 @@ The `--debug` option will let you see the full output. If you encounter any issu
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official user documentation: https://help.bitwarden.com/
|
* Official user documentation: <https://help.bitwarden.com/>
|
||||||
* Official admin documentation: https://github.com/dani-garcia/vaultwarden/wiki
|
* Official admin documentation: <https://github.com/dani-garcia/vaultwarden/wiki>
|
||||||
* Upstream app code repository: https://github.com/dani-garcia/vaultwarden
|
* Upstream app code repository: <https://github.com/dani-garcia/vaultwarden>
|
||||||
* YunoHost documentation for this app: https://yunohost.org/app_vaultwarden
|
* YunoHost documentation for this app: <https://yunohost.org/app_vaultwarden>
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/vaultwarden_ynh/issues
|
* Report a bug: <https://github.com/YunoHost-Apps/vaultwarden_ynh/issues>
|
||||||
|
|
||||||
## Developer info
|
## Developer info
|
||||||
|
|
||||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing).
|
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing).
|
||||||
|
|
||||||
To try the testing branch, please proceed like that.
|
To try the testing branch, please proceed like that.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing --debug
|
||||||
or
|
or
|
||||||
sudo yunohost app upgrade vaultwarden -u https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing --debug
|
sudo yunohost app upgrade vaultwarden -u https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**More info regarding app packaging:** https://yunohost.org/packaging_apps
|
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>
|
||||||
|
|
25
README_fr.md
25
README_fr.md
|
@ -1,10 +1,14 @@
|
||||||
|
<!--
|
||||||
|
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
||||||
|
It shall NOT be edited by hand.
|
||||||
|
-->
|
||||||
|
|
||||||
# Vaultwarden pour YunoHost
|
# Vaultwarden pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/vaultwarden)  
|
[](https://dash.yunohost.org/appci/app/vaultwarden)  
|
||||||
[](https://install-app.yunohost.org/?app=vaultwarden)
|
[](https://install-app.yunohost.org/?app=vaultwarden)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Read this readme in english.](./README.md)*
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
|
||||||
|
|
||||||
> *Ce package vous permet d'installer Vaultwarden rapidement et simplement sur un serveur YunoHost.
|
> *Ce package vous permet d'installer Vaultwarden rapidement et simplement sur un serveur YunoHost.
|
||||||
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
||||||
|
@ -19,7 +23,7 @@ Alternative implementation of the Bitwarden server API written in Rust and compa
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d'écran
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Avertissements / informations importantes
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
|
@ -45,21 +49,22 @@ The `--debug` option will let you see the full output. If you encounter any issu
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Documentation officielle utilisateur : https://help.bitwarden.com/
|
* Documentation officielle utilisateur : <https://help.bitwarden.com/>
|
||||||
* Documentation officielle de l'admin : https://github.com/dani-garcia/vaultwarden/wiki
|
* Documentation officielle de l'admin : <https://github.com/dani-garcia/vaultwarden/wiki>
|
||||||
* Dépôt de code officiel de l'app : https://github.com/dani-garcia/vaultwarden
|
* Dépôt de code officiel de l'app : <https://github.com/dani-garcia/vaultwarden>
|
||||||
* Documentation YunoHost pour cette app : https://yunohost.org/app_vaultwarden
|
* Documentation YunoHost pour cette app : <https://yunohost.org/app_vaultwarden>
|
||||||
* Signaler un bug : https://github.com/YunoHost-Apps/vaultwarden_ynh/issues
|
* Signaler un bug : <https://github.com/YunoHost-Apps/vaultwarden_ynh/issues>
|
||||||
|
|
||||||
## Informations pour les développeurs
|
## Informations pour les développeurs
|
||||||
|
|
||||||
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing).
|
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing).
|
||||||
|
|
||||||
Pour essayer la branche testing, procédez comme suit.
|
Pour essayer la branche testing, procédez comme suit.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing --debug
|
||||||
ou
|
ou
|
||||||
sudo yunohost app upgrade vaultwarden -u https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing --debug
|
sudo yunohost app upgrade vaultwarden -u https://github.com/YunoHost-Apps/vaultwarden_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps
|
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>
|
||||||
|
|
Loading…
Add table
Reference in a new issue