mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 12:11:19 +03:00
Added build step which sets shlink's version
This commit is contained in:
parent
af4c66d40a
commit
82f41de87b
1 changed files with 5 additions and 0 deletions
5
build.sh
5
build.sh
|
@ -46,6 +46,11 @@ rm -rf data/{cache,log,proxies}/{*,.gitignore}
|
|||
rm -rf config/params/{*,.gitignore}
|
||||
rm -rf config/autoload/{{,*.}local.php{,.dist},.gitignore}
|
||||
|
||||
# Update shlink version in config
|
||||
latestShlinkVersion=$(git tag -l --sort=-v:refname | head -n 1)
|
||||
computedVersion=${latestShlinkVersion:1:${#latestShlinkVersion}}
|
||||
sed -i "s/%SHLINK_VERSION%/${computedVersion}/g" config/autoload/app_options.global.php
|
||||
|
||||
# Compressing file
|
||||
rm -f "${projectdir}"/build/shlink_${version}_dist.zip
|
||||
zip -ry "${projectdir}"/build/shlink_${version}_dist.zip "../shlink_${version}_dist"
|
||||
|
|
Loading…
Add table
Reference in a new issue