File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 99rm -rf ./build
1010mkdir ./build
1111
12- VERSION=$( ./bin/doctum.php --version | cut -d ' ' -f 2 | sed -e ' s/^[[:space:]]*//' )
12+ function get_version {
13+ VERSION=$( $1 --version | cut -d ' ' -f 2 | sed -e ' s/^[[:space:]]*//' )
14+ }
15+
16+ get_version ./bin/doctum.php
1317echo " ${VERSION} " > ./build/VERSION
1418
1519echo " Release for : ${VERSION} "
1620
1721GPG_KEY=${GPG_KEY:- C4D91FDFCEF6B4A3C653FD7890A0EF1B8251A889}
1822
19- composer update --no-dev
23+ echo " Remove dev-deps"
24+ composer update --no-dev --quiet
25+ echo " Generate phar"
2026php -dphar.readonly=0 ./scripts/phar-generator-script.php
21- composer update
27+ chmod +x ./build/doctum.phar
28+ echo " Update deps"
29+ composer update --quiet
30+ echo " Copy build files"
2231cp CHANGELOG.md ./build/
2332cp composer.lock ./build/
2433sha256sum ./build/doctum.phar > ./build/doctum.phar.sha256
2534sha256sum ./build/* > ./build/files.sha256
2635gpg --detach-sig --local-user " ${GPG_KEY} " --armor ./build/doctum.phar
2736gpg --detach-sig --local-user " ${GPG_KEY} " --armor ./build/doctum.phar.sha256
2837gpg --detach-sig --local-user " ${GPG_KEY} " --armor ./build/files.sha256
38+ echo " Lint"
39+ php -l ./build/doctum.phar
40+ echo " Version before build: ${VERSION} "
41+ get_version " php ./build/doctum.phar"
42+ echo " Version after build: ${VERSION} "
43+ echo " Done."
You can’t perform that action at this time.
0 commit comments