mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-16 15:29:54 +03:00
Finished build script to compress dist project file
This commit is contained in:
parent
f852f9d398
commit
d5516c7269
1 changed files with 10 additions and 0 deletions
10
build.sh
Normal file → Executable file
10
build.sh
Normal file → Executable file
|
@ -1,6 +1,13 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if [ "$#" -ne 1 ]; then
|
||||||
|
echo "Usage:" >&2
|
||||||
|
echo " $0 {version}" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
version=$1
|
||||||
builtcontent=$(readlink -f '../shlink_build_tmp')
|
builtcontent=$(readlink -f '../shlink_build_tmp')
|
||||||
projectdir=$(pwd)
|
projectdir=$(pwd)
|
||||||
|
|
||||||
|
@ -32,3 +39,6 @@ rm -f config/params/{*,.gitignore}
|
||||||
rm -f config/autoload/{{,*.}local.php{,.dist},.gitignore}
|
rm -f config/autoload/{{,*.}local.php{,.dist},.gitignore}
|
||||||
|
|
||||||
# Compressing file
|
# Compressing file
|
||||||
|
rm -f "${projectdir}"/build/Shlink_${version}.dist.zip
|
||||||
|
zip -r "${projectdir}"/build/Shlink_${version}.dist.zip "${builtcontent}"
|
||||||
|
rm -rf "${builtcontent}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue