Skip to content

Commit

Permalink
Set the version before building the UI, fix release path
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Oct 8, 2024
1 parent 21188ba commit 796c393
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ build_dir="${work_dir}/stratos-ui"

# prebuild ui
cd stratos-ui
if [[ -n "${stratos_version:-""}" ]]; then
sed -i package.json -e 's/"version": .*/"version": "'"$stratos_version"'"/'
fi
npm install
npm run prebuild-ui
rm -Rf ./dist
Expand All @@ -122,7 +125,7 @@ ls -lah "${build_dir}"
cd "${build_dir}"
package_version="${stratos_version:-"dev-$(date +%Y%m%d%H%M%S)"}"
if [[ -n ${RELEASE_DIR:-""} ]] ; then
zip -r [email protected] "${RELEASE_DIR}/stratos-ui-${package_version}.zip" ./*
zip -r [email protected] "${work_dir}/${RELEASE_DIR}/stratos-ui-${package_version}.zip" ./*
else
zip -r [email protected] "${work_dir}/stratos-ui-${package_version}.zip" ./*
fi
Expand Down

0 comments on commit 796c393

Please sign in to comment.