Skip to content

cleanup the makerelease script #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions makerelease.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2017-2022, salesforce.com, inc.
# Copyright (c) 2017-2024, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
Expand Down Expand Up @@ -30,22 +30,23 @@ rm -rf bazel-*
# move some dev directories out, so they don't get zipped up in the archive
tmpdir=/tmp/rules-spring-release
mkdir $tmpdir 2>/dev/null
mv tools/python_interpreter/bin $tmpdir 2>/dev/null
mv tools/python_interpreter/captive_python3 $tmpdir 2>/dev/null
mv examples $tmpdir 2>/dev/null
mv tools/python_interpreter $tmpdir 2>/dev/null

rm -rf coverage-reports
rm -rf springboot/tests/__pycache__
rm -rf springboot/__pycache__
rm *.zip

# jar up the code
release_zip=rules-spring-${release_version}.zip
jar -cvf $release_zip *

# restore the dev directories
mv $tmpdir/bin tools/python_interpreter 2>/dev/null
mv $tmpdir/captive_python3 tools/python_interpreter 2>/dev/null
mv $tmpdir/examples examples 2>/dev/null
mv $tmpdir/python_interpreter tools/python_interpreter 2>/dev/null

rm -rf /tmp/rules-spring-release
rm -rf $tmpdir

sha256=$(shasum -a 256 $release_zip)

Expand Down