mirror of
https://github.com/YunoHost-Apps/calckey_ynh.git
synced 2024-09-03 18:16:18 +02:00
Merge pull request #15 from YunoHost-Apps/testing
This commit is contained in:
commit
f730eed076
9 changed files with 39 additions and 24 deletions
2
.github/workflows/updater.sh
vendored
2
.github/workflows/updater.sh
vendored
|
@ -10,7 +10,7 @@
|
|||
# automatic actions when a new upstream release is detected.
|
||||
|
||||
# Remove this exit command when you are ready to run this Action
|
||||
exit 1
|
||||
#exit 1
|
||||
|
||||
#=================================================
|
||||
# FETCHING LATEST RELEASE AND ITS ASSETS
|
||||
|
|
|
@ -24,7 +24,7 @@ A greatly enhanced fork of Misskey with better UI/UX, security, features, and mo
|
|||
|
||||
|
||||
|
||||
**Shipped version:** 13.0.5~ynh1
|
||||
**Shipped version:** 13.1.2~ynh1
|
||||
|
||||
**Demo:** https://i.calckey.cloud/
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ Un fork grandement amélioré de Misskey avec une meilleure UI/UX, sécurité, f
|
|||
Calckey ajoute de nombreux changements de qualité de vie et des corrections de bogues pour les utilisateurs et les administrateurs d'instance.
|
||||
|
||||
|
||||
**Version incluse :** 13.0.5~ynh1
|
||||
**Version incluse :** 13.1.2~ynh1
|
||||
|
||||
**Démo :** https://i.calckey.cloud/
|
||||
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
setup_private=1
|
||||
setup_public=1
|
||||
upgrade=1
|
||||
# upgrade=1 from_commit=CommitHash
|
||||
# v13.0.5
|
||||
upgrade=1 from_commit=89f4f52e3cb3c9daf8eff43aab67bcda475da410
|
||||
backup_restore=1
|
||||
multi_instance=0
|
||||
change_url=0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://codeberg.org/calckey/calckey/archive/v13.0.5.tar.gz
|
||||
SOURCE_SUM=97A19C8F4E58E3DFB7085A0ACA0D48540A5B39E3FABEC3A623AAD866DE634C74
|
||||
SOURCE_URL=https://codeberg.org/calckey/calckey/archive/v13.1.2.tar.gz
|
||||
SOURCE_SUM=1CA6ACE1BAC1F9BFBA70FC55F828F8C6F3BCC042003A6FE8D9FB16DF0AD678EB
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=tar.gz
|
||||
SOURCE_IN_SUBDIR=true
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Fork of Misskey with better UI/UX, security, features",
|
||||
"fr": "Un fork de Misskey avec une meilleure interface utilisateur, la sécurité, les fonctionnalités"
|
||||
},
|
||||
"version": "13.0.5~ynh1",
|
||||
"version": "13.1.2~ynh1",
|
||||
"url": "https://i.calckey.cloud/",
|
||||
"upstream": {
|
||||
"license": "AGPL-3.0",
|
||||
|
|
16
scripts/install
Executable file → Normal file
16
scripts/install
Executable file → Normal file
|
@ -68,14 +68,12 @@ ynh_app_setting_set --app=$app --key=port --value=$port
|
|||
#=================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Installing dependencies..." --weight=3
|
||||
ynh_script_progression --message="Installing dependencies... This might take some time." --weight=3
|
||||
|
||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||
|
||||
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||
|
||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
#=================================================
|
||||
|
@ -130,17 +128,15 @@ ynh_add_config --template="../conf/default.yml" --destination="$final_path/.conf
|
|||
#=================================================
|
||||
# BUILD APP
|
||||
#=================================================
|
||||
ynh_script_progression --message="Building app..." --weight=15
|
||||
ynh_script_progression --message="Building app... This will take some time." --weight=15
|
||||
|
||||
pushd "$final_path"
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run clean-all
|
||||
corepack enable
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn set version berry
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn plugin import workspace-tools
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run rebuild
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run migrate
|
||||
corepack prepare pnpm@latest --activate
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm install
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm build
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm run init
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
15
scripts/restore
Executable file → Normal file
15
scripts/restore
Executable file → Normal file
|
@ -73,7 +73,20 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=5
|
|||
# Define and install dependencies
|
||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||
|
||||
#=================================================
|
||||
# REINSTALL PNPM
|
||||
#=================================================
|
||||
ynh_script_progression --message="Reinstalling pnpm..." --weight=1
|
||||
|
||||
# Define and install pnpm
|
||||
pushd "$final_path"
|
||||
ynh_use_nodejs
|
||||
corepack enable
|
||||
corepack prepare pnpm@latest --activate
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm install
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm build
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE NGINX CONFIGURATION
|
||||
|
|
|
@ -44,7 +44,7 @@ fi
|
|||
#=================================================
|
||||
ynh_script_progression --message="Stopping a systemd service..." --weight=1
|
||||
|
||||
# Stop bservice before backup, to not loose message in case of failed upgrade and restore
|
||||
# Stop service before backup, to not loose message in case of failed upgrade and restore
|
||||
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped"
|
||||
|
||||
#=================================================
|
||||
|
@ -120,7 +120,10 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=5
|
|||
|
||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
||||
ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg"
|
||||
|
||||
# REMOVE YARN (upgrade from 13.0.x to 13.1.x)
|
||||
ynh_script_progression --message="Removing old version dependency..."
|
||||
ynh_secure_remove --file="$final_path/.yarn"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
@ -136,10 +139,12 @@ ynh_add_nginx_config
|
|||
ynh_script_progression --message="Building app..."
|
||||
|
||||
pushd "$final_path"
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run rebuild
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run migrate
|
||||
corepack enable
|
||||
corepack prepare pnpm@latest --activate
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm clean-all
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm install
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_ENV=production pnpm run build
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH pnpm run migrate
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue