commit: b1d67fc89b160f748a2e3ec706a96b83853fccde Author: Rahil Bhimjiani <me <AT> rahil <DOT> rocks> AuthorDate: Wed Mar 27 12:19:22 2024 +0000 Commit: Rahil Bhimjiani <rahil3108 <AT> gmail <DOT> com> CommitDate: Wed Mar 27 12:19:53 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b1d67fc8
www-apps/vaultwarden-web: add dies and popds Signed-off-by: Rahil Bhimjiani <me <AT> rahil.rocks> www-apps/vaultwarden-web/vaultwarden-web-2024.1.2b.ebuild | 3 ++- www-apps/vaultwarden-web/vaultwarden-web-2024.3.0.ebuild | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www-apps/vaultwarden-web/vaultwarden-web-2024.1.2b.ebuild b/www-apps/vaultwarden-web/vaultwarden-web-2024.1.2b.ebuild index 60158ed172..2bf9f2b95d 100644 --- a/www-apps/vaultwarden-web/vaultwarden-web-2024.1.2b.ebuild +++ b/www-apps/vaultwarden-web/vaultwarden-web-2024.1.2b.ebuild @@ -59,11 +59,12 @@ src_prepare() { src_compile() { # mimicking the behaviour of https://github.com/dani-garcia/bw_web_builds/blob/master/scripts/build_web_vault.sh - pushd apps/web + pushd apps/web || die npm --verbose --offline run dist:oss:selfhost && printf '{"version":"%s"}' "${PV}" | tee build/vw-version.json \ || die "Build failed! Try prebuilt from upstream ${CATEGORY}/${PN}-bin" # although following is optional in upstream's build process, it reduced build dir size from 44M to 25M find build -name "*.map" -delete || die + popd || die } src_install() { diff --git a/www-apps/vaultwarden-web/vaultwarden-web-2024.3.0.ebuild b/www-apps/vaultwarden-web/vaultwarden-web-2024.3.0.ebuild index c5e2bb8610..20f1cd608e 100644 --- a/www-apps/vaultwarden-web/vaultwarden-web-2024.3.0.ebuild +++ b/www-apps/vaultwarden-web/vaultwarden-web-2024.3.0.ebuild @@ -92,11 +92,12 @@ src_compile() { npm --verbose --offline clean-install || die # mimicking the behaviour of https://github.com/dani-garcia/bw_web_builds/blob/master/scripts/build_web_vault.sh - pushd apps/web + pushd apps/web || die npm --verbose --offline run dist:oss:selfhost && printf '{"version":"%s"}' "${PV}" | tee build/vw-version.json \ || die "Build failed! Try prebuilt from upstream ${CATEGORY}/${PN}-bin" # although following is optional in upstream's build process, it reduced build dir size from 44M to 25M find build -name "*.map" -delete || die + popd || die } src_install() {