1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photoview_ynh.git synced 2024-09-03 20:05:55 +02:00
This commit is contained in:
Éric Gaspar 2024-05-02 22:57:24 +02:00
commit 002c3eab56
7 changed files with 22 additions and 12 deletions

View file

@ -19,7 +19,7 @@ It shall NOT be edited by hand.
Photoview is a simple and user-friendly photo gallery that's made for photographers and aims to provide an easy and fast way to navigate directories, with thousands of high resolution photos.
**Shipped version:** 2.3.12~ynh2
**Shipped version:** 2.3.13~ynh1
**Demo:** <https://photos.qpqp.dk/>

View file

@ -19,7 +19,7 @@ EZ editatu eskuz.
Photoview is a simple and user-friendly photo gallery that's made for photographers and aims to provide an easy and fast way to navigate directories, with thousands of high resolution photos.
**Paketatutako bertsioa:** 2.3.12~ynh2
**Paketatutako bertsioa:** 2.3.13~ynh1
**Demoa:** <https://photos.qpqp.dk/>

View file

@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main.
Galerie photos simple et facile à utiliser, faite pour les photographes.
**Version incluse:** 2.3.12~ynh2
**Version incluse:** 2.3.13~ynh1
**Démo:** <https://photos.qpqp.dk/>

View file

@ -19,7 +19,7 @@ NON debe editarse manualmente.
Photoview is a simple and user-friendly photo gallery that's made for photographers and aims to provide an easy and fast way to navigate directories, with thousands of high resolution photos.
**Versión proporcionada:** 2.3.12~ynh2
**Versión proporcionada:** 2.3.13~ynh1
**Demo:** <https://photos.qpqp.dk/>

View file

@ -19,7 +19,7 @@
Photoview is a simple and user-friendly photo gallery that's made for photographers and aims to provide an easy and fast way to navigate directories, with thousands of high resolution photos.
**分发版本:** 2.3.12~ynh2
**分发版本:** 2.3.13~ynh1
**演示:** <https://photos.qpqp.dk/>

View file

@ -7,7 +7,7 @@ name = "Photoview"
description.en = "Simple and user-friendly photo gallery that's made for photographers "
description.fr = "Galerie photos simple et facile à utiliser, faite pour les photographes"
version = "2.3.12~ynh2"
version = "2.3.13~ynh1"
maintainers = ["Jules Bertholet"]
@ -49,8 +49,8 @@ ram.runtime = "200M"
[resources]
[resources.sources]
[resources.sources.main]
url = "https://github.com/photoview/photoview/archive/refs/tags/v2.3.12.tar.gz"
sha256 = "f9de00fb2d854217655a71264c06f8451b06b67170d3a5bbd9160fc94f1dda0f"
url = "https://github.com/photoview/photoview/archive/refs/tags/v2.3.13.tar.gz"
sha256 = "d512448fbefb6c209f1900c1d4e819f22b53de3f441df84a7a96f08a10dfb064"
autoupdate.strategy = "latest_github_release"
@ -70,7 +70,17 @@ ram.runtime = "200M"
[resources.permissions]
main.url = "/"
api.url = "/api"
api.allow = "visitors"
api.auth_header = false
api.protect = true
share.url = "/share"
share.allow = "visitors"
share.auth_header = false
share.protect = true
[resources.ports]
main.default = 4001

View file

@ -77,13 +77,13 @@ function build_ui {
ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn --cache-folder "./yarn-cache" --use-yarnrc ".yarnrc" import 2>&1
# ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn --cache-folder "./yarn-cache" --use-yarnrc ".yarnrc" add husky 2>&1
ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn --cache-folder "./yarn-cache" --use-yarnrc ".yarnrc" install --production 2>&1
ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn --cache-folder "./yarn-cache" --use-yarnrc ".yarnrc" add graphql --ignore-engines 2>&1
ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn --cache-folder "./yarn-cache" --use-yarnrc ".yarnrc" run build --public-url "$path" 2>&1
ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn --cache-folder "./yarn-cache" --use-yarnrc ".yarnrc" add graphql --production --ignore-engines 2>&1
ynh_exec_as "$app" env "$ynh_node_load_PATH" yarn --cache-folder "./yarn-cache" --use-yarnrc ".yarnrc" run build 2>&1
# ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production "$ynh_npm" install
# ynh_exec_as "$app" env "$ynh_node_load_PATH" NODE_ENV=production "$ynh_npm" run build
popd || ynh_die
cp -rT "$install_dir/sources/ui/build" "$install_dir/output/ui"
cp -rT "$install_dir/sources/ui/dist" "$install_dir/output/ui"
}
function cleanup_sources {