fix: normalize web release asset permissions
This commit is contained in:
@@ -98,6 +98,10 @@ echo "[production-web-deploy] 解压 Web 到: ${WEB_TARGET}"
|
||||
tar -xzf "${SOURCE_DIR}/web.tar.gz" -C "${RELEASE_DIR}"
|
||||
test -d "${WEB_TARGET}"
|
||||
|
||||
echo "[production-web-deploy] 规范 Web 静态资源权限"
|
||||
find "${WEB_TARGET}" -type d -exec chmod 755 {} +
|
||||
find "${WEB_TARGET}" -type f -exec chmod 644 {} +
|
||||
|
||||
if [[ -f "${SOURCE_DIR}/release-manifest.json" ]]; then
|
||||
cp "${SOURCE_DIR}/release-manifest.json" "${RELEASE_DIR}/release-manifest.web.json"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user