From 6b482c710ba8e608c3b5c0e6c689df4a615d99ce Mon Sep 17 00:00:00 2001 From: Neko Nekowazarashi Date: Tue, 30 May 2023 21:46:37 +0700 Subject: [PATCH] perbaiki jalur manifest.json --- scripts/change_url | 2 ++ scripts/install | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 2994e1d..0fd409d 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -58,6 +58,8 @@ then ynh_replace_string --match_string="href=\"$old_next_path/apple" --replace_string="href=\"$new_next_path/apple" --target_file="$install_dir/components/CustomHead.tsx" + ynh_replace_string --match_string="href=\"$old_next_path/manifest" --replace_string="href=\"$new_next_path/manifest" --target_file="$install_dir/components/CustomHead.tsx" + ynh_replace_string --match_string="start_url\": \"$old_next_path/" --replace_string="start_url\": \"$new_next_path/" --target_file="$install_dir/public/manifest.json" ynh_replace_string --match_string="scope\": \"$old_next_path/" --replace_string="scope\": \"$new_next_path/" --target_file="$install_dir/public/manifest.json" diff --git a/scripts/install b/scripts/install index bb537d5..2bf8147 100755 --- a/scripts/install +++ b/scripts/install @@ -62,6 +62,8 @@ ynh_replace_string --match_string="href=\"/favicon" --replace_string="href=\"$ne ynh_replace_string --match_string="href=\"/apple" --replace_string="href=\"$next_path/apple" --target_file="$install_dir/components/CustomHead.tsx" +ynh_replace_string --match_string="href=\"/manifest" --replace_string="href=\"$next_path/manifest" --target_file="$install_dir/components/CustomHead.tsx" + ynh_replace_string --match_string="start_url\": \"/" --replace_string="start_url\": \"$next_path/" --target_file="$install_dir/public/manifest.json" ynh_replace_string --match_string="scope\": \"/" --replace_string="scope\": \"$next_path/" --target_file="$install_dir/public/manifest.json"