From 38e0cc56d0be4b034598b3b8f207fa64ec1a8aa2 Mon Sep 17 00:00:00 2001 From: silentrald Date: Fri, 25 Oct 2024 19:05:39 +0800 Subject: [PATCH] [chore] add write permissions to bs-versions.json after install --- build/after-install.sh | 3 +++ package.json | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 build/after-install.sh diff --git a/build/after-install.sh b/build/after-install.sh new file mode 100644 index 00000000..a12aa1cb --- /dev/null +++ b/build/after-install.sh @@ -0,0 +1,3 @@ +# Add write permissions to anybody so that this can be sync with the +# github's bs-versions.json when starting bsmanager +/usr/bin/chmod +002 /opt/BSManager/resources/assets/jsons/bs-versions.json diff --git a/package.json b/package.json index 1d515fc8..ec34d00f 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,15 @@ ] } }, + "deb": { + "fpm": ["--after-install=build/after-install.sh"] + }, + "rpm": { + "fpm": ["--after-install=build/after-install.sh"] + }, + "pacman": { + "fpm": ["--after-install=build/after-install.sh"] + }, "directories": { "app": "release/app", "buildResources": "assets",