Compare commits

...

4 Commits

Author SHA1 Message Date
847188a731 created 2023-07-29 17:30:52 +02:00
79478338d7 automatically generated 2023-07-29 17:29:47 +02:00
9dfd2d0c1a added filename 2023-07-29 17:29:12 +02:00
28ca30fbc5 changed version number 2023-07-29 17:28:55 +02:00
5 changed files with 152 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
TODO.md TODO.md
clean-after-make_readme.sh

View File

@ -1,3 +1,52 @@
# sr2ini_yhn <!--
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.
-->
sr2ini as a Yunohost package. # SR2 Initiative Tracker for YunoHost
[![Integration level](https://dash.yunohost.org/integration/sr2ini.svg)](https://dash.yunohost.org/appci/app/sr2ini) ![Working status](https://ci-apps.yunohost.org/ci/badges/sr2ini.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/sr2ini.maintain.svg)
[![Install SR2 Initiative Tracker with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=sr2ini)
*[Lire ce readme en français.](./README_fr.md)*
> *This package allows you to install SR2 Initiative Tracker quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
## Overview
sr2ini is a lightweight, single-page initiative tracker for the TTRPG Shadowrun in its 2nd edition. The app helps DMs and players to manage fights by tracking each combatant's initiative, order of action, damage (stun and physical), and wound modifiers. It was written specifically for mobile use and can be installed as a web app.
This package allows you to install sr2ini quickly and simply on a YunoHost server. If you don't have YunoHost, please consult the guide to learn how to install it.
## YunoHost specific features
* supports multi-install
* defaut visibility is public
**Shipped version:** 0.9~ynh1
## Screenshots
![Screenshot of SR2 Initiative Tracker](./doc/screenshots/sr2ini-screenshot.jpg)
## Documentation and resources
* YunoHost documentation for this app: <https://yunohost.org/app_sr2ini>
* Report a bug: <https://github.com/YunoHost-Apps/sr2ini_ynh/issues>
## Developer info
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/sr2ini_ynh/tree/testing).
To try the testing branch, please proceed like that.
``` bash
sudo yunohost app install https://github.com/YunoHost-Apps/sr2ini_ynh/tree/testing --debug
or
sudo yunohost app upgrade sr2ini -u https://github.com/YunoHost-Apps/sr2ini_ynh/tree/testing --debug
```
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>

52
README_fr.md Normal file
View File

@ -0,0 +1,52 @@
<!--
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.
-->
# SR2 Initiative Tracker pour YunoHost
[![Niveau dintégration](https://dash.yunohost.org/integration/sr2ini.svg)](https://dash.yunohost.org/appci/app/sr2ini) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/sr2ini.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/sr2ini.maintain.svg)
[![Installer SR2 Initiative Tracker avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=sr2ini)
*[Read this readme in english.](./README.md)*
> *Ce package vous permet dinstaller SR2 Initiative Tracker rapidement et simplement sur un serveur YunoHost.
Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment linstaller et en profiter.*
## Vue densemble
sr2ini is a lightweight, single-page initiative tracker for the TTRPG Shadowrun in its 2nd edition. The app helps DMs and players to manage fights by tracking each combatant's initiative, order of action, damage (stun and physical), and wound modifiers. It was written specifically for mobile use and can be installed as a web app.
This package allows you to install sr2ini quickly and simply on a YunoHost server. If you don't have YunoHost, please consult the guide to learn how to install it.
## YunoHost specific features
* supports multi-install
* defaut visibility is public
**Version incluse :** 0.9~ynh1
## Captures décran
![Capture décran de SR2 Initiative Tracker](./doc/screenshots/sr2ini-screenshot.jpg)
## Documentations et ressources
* Documentation YunoHost pour cette app : <https://yunohost.org/app_sr2ini>
* Signaler un bug : <https://github.com/YunoHost-Apps/sr2ini_ynh/issues>
## Informations pour les développeurs
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/sr2ini_ynh/tree/testing).
Pour essayer la branche testing, procédez comme suit.
``` bash
sudo yunohost app install https://github.com/YunoHost-Apps/sr2ini_ynh/tree/testing --debug
ou
sudo yunohost app upgrade sr2ini -u https://github.com/YunoHost-Apps/sr2ini_ynh/tree/testing --debug
```
**Plus dinfos sur le packaging dapplications :** <https://yunohost.org/packaging_apps>

View File

@ -5,7 +5,7 @@ name = "SR2 Initiative Tracker"
description.en = "A simple initiative tracker for Shaodwrun 2e." description.en = "A simple initiative tracker for Shaodwrun 2e."
description.de = "Ein einfacher Initiative-Tracker für Shaodwrun, 2. Edition." description.de = "Ein einfacher Initiative-Tracker für Shaodwrun, 2. Edition."
version = "0.1~ynh1" version = "0.9~ynh1"
maintainers = ["Eclipse"] maintainers = ["Eclipse"]

47
scripts/upgrade Normal file
View File

@ -0,0 +1,47 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source /usr/share/yunohost/helpers
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files …" --weight=2
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
fi
chown -R $app:www-data "$install_dir"
chmod -R o-rwx "$install_dir"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression --message="Upgrading nginx configuration …" --weight=1
ynh_add_nginx_config
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Upgrade of $app completed" --last