-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix often forget zip python package #113
Fix often forget zip python package #113
Conversation
Makefile
Outdated
@@ -71,6 +72,13 @@ check-format: | |||
bundle-python: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you help change bundle-python
as bundle-python-mac
too? thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pkong-ds updated
Makefile
Outdated
mkdir -p mockup | ||
cp -r mockup_package/mockup/* mockup/ | ||
zip -r public/mockup.zip mockup | ||
rm -rf mockup | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, forgot to say - if we are creating&removing sth in a script, can we follow the convention of putting these into tmp/
folder? thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pkong-ds updated~
be970cd
to
df9dc33
Compare
df9dc33
to
618b639
Compare
Makefile
Outdated
cd tmp && \ | ||
if [ -d "mockup" ]; then \ | ||
zip -r ../public/mockup mockup; \ | ||
else \ | ||
echo "Error: Directory 'mockup' does not exist."; \ | ||
exit 1; \ | ||
fi | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why need cd into tmp
?
cd tmp && \ | |
if [ -d "mockup" ]; then \ | |
zip -r ../public/mockup mockup; \ | |
else \ | |
echo "Error: Directory 'mockup' does not exist."; \ | |
exit 1; \ | |
fi | |
if [ -d "tmp/mockup" ]; then \ | |
zip -r public/mockup tmp/mockup; \ | |
else \ | |
echo "Error: Directory 'mockup' does not exist in directory 'tmp'."; \ | |
exit 1; \ | |
fi | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pkong-ds if we use zip -r public/mockup tmp/mockup;
the unzip file will be
tmp/
mockup/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, let's keep it then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added rm -rf tmp
, @YayunHuang please merge if okay!
Ref: MUP-164