1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/misskey_ynh.git synced 2024-09-03 19:46:03 +02:00
This commit is contained in:
eric_G 2024-07-15 15:52:22 +00:00 committed by GitHub
commit 88649e523e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 27 additions and 42 deletions

View file

@ -5,7 +5,7 @@ It shall NOT be edited by hand.
# Misskey for YunoHost # Misskey for YunoHost
[![Integration level](https://dash.yunohost.org/integration/misskey.svg)](https://dash.yunohost.org/appci/app/misskey) ![Working status](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg) [![Integration level](https://dash.yunohost.org/integration/misskey.svg)](https://ci-apps.yunohost.org/ci/apps/misskey/) ![Working status](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg)
[![Install Misskey with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey) [![Install Misskey with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey)
@ -19,7 +19,7 @@ It shall NOT be edited by hand.
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms. Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
**Shipped version:** 12.119.2~ynh2 **Shipped version:** 2024.3.1~ynh1
## Screenshots ## Screenshots

View file

@ -5,7 +5,7 @@ No se debe editar a mano.
# Misskey para Yunohost # Misskey para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/misskey.svg)](https://dash.yunohost.org/appci/app/misskey) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg) [![Nivel de integración](https://dash.yunohost.org/integration/misskey.svg)](https://ci-apps.yunohost.org/ci/apps/misskey/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg)
[![Instalar Misskey con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey) [![Instalar Misskey con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey)
@ -19,7 +19,7 @@ No se debe editar a mano.
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms. Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
**Versión actual:** 12.119.2~ynh2 **Versión actual:** 2024.3.1~ynh1
## Capturas ## Capturas

View file

@ -5,7 +5,7 @@ EZ editatu eskuz.
# Misskey YunoHost-erako # Misskey YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/misskey.svg)](https://dash.yunohost.org/appci/app/misskey) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg) [![Integrazio maila](https://dash.yunohost.org/integration/misskey.svg)](https://ci-apps.yunohost.org/ci/apps/misskey/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg)
[![Instalatu Misskey YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey) [![Instalatu Misskey YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey)
@ -19,7 +19,7 @@ EZ editatu eskuz.
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms. Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
**Paketatutako bertsioa:** 12.119.2~ynh2 **Paketatutako bertsioa:** 2024.3.1~ynh1
## Pantaila-argazkiak ## Pantaila-argazkiak

View file

@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
# Misskey pour YunoHost # Misskey pour YunoHost
[![Niveau dintégration](https://dash.yunohost.org/integration/misskey.svg)](https://dash.yunohost.org/appci/app/misskey) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg) [![Niveau dintégration](https://dash.yunohost.org/integration/misskey.svg)](https://ci-apps.yunohost.org/ci/apps/misskey/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg)
[![Installer Misskey avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey) [![Installer Misskey avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey)
@ -18,7 +18,7 @@ Il NE doit PAS être modifié à la main.
Misskey est une plateforme de microblogging décentralisée. Puisqu'il existe au sein du Fediverse (un univers où diverses plateformes de médias sociaux sont organisées), il est mutuellement lié à d'autres plateformes de médias sociaux. Misskey est une plateforme de microblogging décentralisée. Puisqu'il existe au sein du Fediverse (un univers où diverses plateformes de médias sociaux sont organisées), il est mutuellement lié à d'autres plateformes de médias sociaux.
**Version incluse:** 12.119.2~ynh2 **Version incluse:** 2024.3.1~ynh1
## Captures décran ## Captures décran

View file

@ -5,7 +5,7 @@ NON debe editarse manualmente.
# Misskey para YunoHost # Misskey para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/misskey.svg)](https://dash.yunohost.org/appci/app/misskey) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg) [![Nivel de integración](https://dash.yunohost.org/integration/misskey.svg)](https://ci-apps.yunohost.org/ci/apps/misskey/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg)
[![Instalar Misskey con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey) [![Instalar Misskey con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey)
@ -19,7 +19,7 @@ NON debe editarse manualmente.
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms. Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
**Versión proporcionada:** 12.119.2~ynh2 **Versión proporcionada:** 2024.3.1~ynh1
## Capturas de pantalla ## Capturas de pantalla

View file

@ -5,7 +5,7 @@
# YunoHost 上的 Misskey # YunoHost 上的 Misskey
[![集成程度](https://dash.yunohost.org/integration/misskey.svg)](https://dash.yunohost.org/appci/app/misskey) ![工作状态](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg) [![集成程度](https://dash.yunohost.org/integration/misskey.svg)](https://ci-apps.yunohost.org/ci/apps/misskey/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/misskey.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/misskey.maintain.svg)
[![使用 YunoHost 安装 Misskey](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey) [![使用 YunoHost 安装 Misskey](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=misskey)
@ -19,7 +19,7 @@
Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms. Misskey is a decentralized microblogging platform. Since it exists within the Fediverse (a universe where various social media platforms are organized), it is mutually linked with other social media platforms.
**分发版本:** 12.119.2~ynh2 **分发版本:** 2024.3.1~ynh1
## 截图 ## 截图

View file

@ -7,7 +7,7 @@ name = "Misskey"
description.en = "Microblogging platform" description.en = "Microblogging platform"
description.fr = "Platforme de Microblogging" description.fr = "Platforme de Microblogging"
version = "12.119.2~ynh2" version = "2024.3.1~ynh1"
maintainers = [] maintainers = []
@ -22,11 +22,14 @@ fund = "https://patreon.com/syuilo"
yunohost = ">= 11.2.12" yunohost = ">= 11.2.12"
architectures = ["amd64", "arm64"] architectures = ["amd64", "arm64"]
multi_instance = true multi_instance = true
ldap = false ldap = false
sso = true sso = true
disk = "50M" # FIXME: replace with an **estimate** minimum disk requirement. e.g. 20M, 400M, 1G, ...
ram.build = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ... disk = "50M"
ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requirement. e.g. 50M, 400M, 1G, ... ram.build = "50M"
ram.runtime = "50M"
[install] [install]
[install.domain] [install.domain]
@ -39,10 +42,10 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
default = "visitors" default = "visitors"
[resources] [resources]
[resources.sources.main]
url = "https://github.com/misskey-dev/misskey/archive/refs/tags/12.119.2.tar.gz"
sha256 = "0620c8d4ee82f3bfa5749197b719cff606628413875589918df58f71cae9df57"
[resources.sources.main]
url = "https://github.com/misskey-dev/misskey/archive/refs/tags/2024.3.1.tar.gz"
sha256 = "f962f38fbf71f600fcc8c1969f418f46565fa58b83dc93528d29a3e65fd79571"
autoupdate.strategy = "latest_github_tag" autoupdate.strategy = "latest_github_tag"
[resources.system_user] [resources.system_user]
@ -57,7 +60,8 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
[resources.apt] [resources.apt]
packages = [ packages = [
"ffmpeg", "ffmpeg",
"postgresql" "postgresql",
"redis-server",
] ]
[resources.apt.extras.yarn] [resources.apt.extras.yarn]

View file

@ -4,7 +4,7 @@
# COMMON VARIABLES # COMMON VARIABLES
#================================================= #=================================================
NODEJS_VERSION="16.15.0" NODEJS_VERSION="20"
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS
@ -13,7 +13,7 @@ NODEJS_VERSION="16.15.0"
misskey_build() { misskey_build() {
pushd "$install_dir" pushd "$install_dir"
ynh_use_nodejs ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn add ts-node webpack ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn add ts-node webpack -W
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn build ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn build
ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn run init ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production yarn run init
popd popd

View file

@ -26,27 +26,12 @@ ynh_remove_logrotate
# Remove the dedicated NGINX config # Remove the dedicated NGINX config
ynh_remove_nginx_config ynh_remove_nginx_config
#=================================================
# REMOVE THE REDIS DATABASE
#=================================================
ynh_script_progression --message="Removing the redis database..." --weight=1
ynh_redis_remove_db "$redis_db" ynh_redis_remove_db "$redis_db"
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression --message="Removing NodeJS..." --weight=1
# Remove metapackage and its dependencies # Remove metapackage and its dependencies
ynh_remove_nodejs ynh_remove_nodejs
#=================================================
# REMOVE VARIOUS FILES
#=================================================
# Remove the log files # Remove the log files
ynh_secure_remove --file="/var/log/$app"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View file

@ -42,6 +42,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/systemd/system/$app.service" ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable "$app.service" --quiet systemctl enable "$app.service" --quiet
yunohost service add "$app" --description="A interplanetary blogging platform" --log="/var/log/$app/$app.log" yunohost service add "$app" --description="A interplanetary blogging platform" --log="/var/log/$app/$app.log"
ynh_restore_file --origin_path="/etc/logrotate.d/$app" ynh_restore_file --origin_path="/etc/logrotate.d/$app"

View file

@ -23,11 +23,6 @@ ynh_script_progression --message="Stopping $app's systemd service..." --weight=1
# Stop bservice before backup, to not loose message in case of failed upgrade and restore # Stop bservice before backup, to not loose message in case of failed upgrade and restore
ynh_systemd_action --service_name="$app" --action="stop" --log_path=systemd ynh_systemd_action --service_name="$app" --action="stop" --log_path=systemd
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
# ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
#================================================= #=================================================
# UPGRADE DEPENDENCIES # UPGRADE DEPENDENCIES
#================================================= #=================================================