This is an automated email from the ASF dual-hosted git repository.

jacopoc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ofbiz-tools.git

commit 1d4f0f002cf849bd8e2b217cb7e13fe8fb65442f
Author: Jacopo Cappellato <[email protected]>
AuthorDate: Thu Oct 22 15:00:25 2026 +0200

    Refactor release preparation script to streamline framework and plugin setup
---
 process-ofbiz-release.sh | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/process-ofbiz-release.sh b/process-ofbiz-release.sh
index 6451422..758a568 100644
--- a/process-ofbiz-release.sh
+++ b/process-ofbiz-release.sh
@@ -13,21 +13,14 @@ if [[ $# -eq 0 ]] ; then
     exit 1
 fi
 
-# prepare framework
-cd ofbiz-framework/
-git tag release$1
-git checkout-index -a -f --prefix=../apache-ofbiz-$1/
-
-# prepare plugins
-cd ../ofbiz-plugins/
-git tag release$1
-git checkout-index -a -f --prefix=../apache-ofbiz-$1/plugins/
-
-cd ..
+mkdir -p apache-ofbiz-$1/
+mkdir -p apache-ofbiz-$1/plugins/
+set -o pipefail
+curl -fsSL 
https://github.com/apache/ofbiz-framework/archive/refs/tags/release$1.tar.gz | 
tar -xz -C apache-ofbiz-$1/ --strip-components=1
+curl -fsSL 
https://github.com/apache/ofbiz-plugins/archive/refs/tags/release$1.tar.gz | 
tar -xz -C apache-ofbiz-$1/plugins/ --strip-components=1
 
 # Remove unwanted file
-rm apache-ofbiz-$1/gradle/wrapper/gradle-wrapper.jar \
-   apache-ofbiz-$1/plugins/LICENSE \
+rm apache-ofbiz-$1/plugins/LICENSE \
    apache-ofbiz-$1/plugins/VERSION \
    apache-ofbiz-$1/plugins/.project \
    apache-ofbiz-$1/.pre-commit-config.yaml
@@ -44,7 +37,7 @@ echo "$1" > apache-ofbiz-$1/VERSION
 zip  apache-ofbiz-$1.zip -r -T apache-ofbiz-$1/*
 
 # Sign
-gpg --armor --output apache-ofbiz-$1.zip.asc --detach-sig apache-ofbiz-$1.zip
+gpg --armor --detach-sig --output apache-ofbiz-$1.zip.asc apache-ofbiz-$1.zip
 gpg --print-md SHA512 apache-ofbiz-$1.zip > apache-ofbiz-$1.zip.sha512
 
 # To finish

Reply via email to