build without the bitwarden_license/ directory

This commit is contained in:
Stefan Melmuk 2024-06-19 12:18:11 +02:00
parent 36439a9baf
commit 7b86da5d58
No known key found for this signature in database
GPG key ID: 817020C608FE9C09
2 changed files with 4 additions and 0 deletions

View file

@ -49,6 +49,9 @@ replace_embedded_svg_icon \
../resources/vaultwarden-password-manager-logo.svg \
./apps/web/src/app/layouts/password-manager-logo.ts
echo "Remove non-free bitwarden_license/ code"
rm -rf ./bitwarden_license/
echo "Using patch: ${PATCH_NAME}"
git apply "../patches/${PATCH_NAME}" --reject

View file

@ -38,6 +38,7 @@ if [ "$(git status --porcelain | wc -l)" -ge 1 ]; then
':!apps/web/src/images/icons/safari-pinned-tab.svg' \
':!apps/web/src/app/admin-console/icons/admin-console-logo.ts' \
':!apps/web/src/app/layouts/password-manager-logo.ts' \
':!bitwarden_license/' \
> "../patches/${PATCH_FILENAME}"
echo "Patch has been created here: patches/${PATCH_FILENAME}"
else