mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
assets/release.sh:release(): fix lapse in logic.
This commit is contained in:
parent
b0f140d657
commit
5424b2ba1e
@ -42,9 +42,9 @@ release() {
|
|||||||
_nwjs_subdir="$(subst "${NWJS_SUBDIR}" "%NWJS_PLATFORM%" "${_platform}")";
|
_nwjs_subdir="$(subst "${NWJS_SUBDIR}" "%NWJS_PLATFORM%" "${_platform}")";
|
||||||
_nwjs_url="$(subst "$(eval echo \"\${NWJS_URL_${_platform%%-*}}\")" "%NWJS_PLATFORM%" "${_platform}")";
|
_nwjs_url="$(subst "$(eval echo \"\${NWJS_URL_${_platform%%-*}}\")" "%NWJS_PLATFORM%" "${_platform}")";
|
||||||
_nwjs_fname="${RELEASES_DNAME}/${_nwjs_url##*/}";
|
_nwjs_fname="${RELEASES_DNAME}/${_nwjs_url##*/}";
|
||||||
|
_release_version="$(sed -n '/^\s*"version":/s/^.*:\s*"\([0-9.]\+\)",\?\s*$/\1/p' package.json)";
|
||||||
_release_dname="${RELEASES_DNAME}/${PACKAGE_NAME}-${_release_version}-release-${_platform}";
|
_release_dname="${RELEASES_DNAME}/${PACKAGE_NAME}-${_release_version}-release-${_platform}";
|
||||||
_release_fname="${_release_dname}.zip";
|
_release_fname="${_release_dname}.zip";
|
||||||
_release_version="$(sed -n '/^\s*"version":/s/^.*:\s*"\([0-9.]\+\)",\?\s*$/\1/p' package.json)";
|
|
||||||
|
|
||||||
trap "rm -fr ${_release_dname}" EXIT HUP INT QUIT PIPE TERM USR1 USR2;
|
trap "rm -fr ${_release_dname}" EXIT HUP INT QUIT PIPE TERM USR1 USR2;
|
||||||
if [ "${_vflag:-0}" -eq 0 ]; then
|
if [ "${_vflag:-0}" -eq 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user