From 2b2aeb3a18841a1eb672598f8047e65bcd67afba Mon Sep 17 00:00:00 2001 From: Sylvain Date: Fri, 19 Jul 2024 22:37:20 +0200 Subject: [PATCH] Fix build-lock.json warn --- conf/build-lock.json | 26 ++++++++++++++++++++++++++ scripts/install | 4 ++++ scripts/upgrade | 4 ++++ 3 files changed, 34 insertions(+) create mode 100644 conf/build-lock.json diff --git a/conf/build-lock.json b/conf/build-lock.json new file mode 100644 index 0000000..8a63046 --- /dev/null +++ b/conf/build-lock.json @@ -0,0 +1,26 @@ +{ + "sources": [ + { + "name": "imagemagick", + "version": "?" + }, + { + "name": "libheif", + "version": "?" + }, + { + "name": "libraw", + "version": "?" + }, + { + "name": "libvips", + "version": "?" + } + ], + "packages": [ + { + "name": "ffmpeg", + "version": "?" + } + ] +} diff --git a/scripts/install b/scripts/install index e44f34b..5466941 100755 --- a/scripts/install +++ b/scripts/install @@ -64,6 +64,10 @@ ynh_add_config --template="env-machine-learning" --destination="$install_dir/env chmod 600 "$install_dir/env-machine-learning" chown $app:$app "$install_dir/env-machine-learning" +ynh_add_config --template="build-lock.json" --destination="$install_dir/app/build-lock.json" +chmod 600 "$install_dir/app/build-lock.json" +chown $app:$app "$install_dir/app/build-lock.json" + #================================================= # SYSTEM CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index fc034e6..5108b66 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -68,6 +68,10 @@ ynh_add_config --template="env-machine-learning" --destination="$install_dir/env chmod 600 "$install_dir/env-machine-learning" chown $app:$app "$install_dir/env-machine-learning" +ynh_add_config --template="build-lock.json" --destination="$install_dir/app/build-lock.json" +chmod 600 "$install_dir/app/build-lock.json" +chown $app:$app "$install_dir/app/build-lock.json" + #================================================= # REAPPLY SYSTEM CONFIGURATIONS #=================================================