Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
fix for packaging issue
Browse files Browse the repository at this point in the history
maming sure .pyc files are deleted
  • Loading branch information
flatsiedatsie committed Feb 17, 2020
1 parent 6146884 commit f4f7ee7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"manifest_version": 1,
"name": "Power Settings",
"short_name": "Power",
"version": "0.0.2",
"version": "0.0.3",
"web_accessible_resources": [
"css/*.css",
"images/*.svg",
Expand Down
8 changes: 7 additions & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

version=$(grep '"version":' manifest.json | cut -d: -f2 | cut -d\" -f2)

rm -rf SHA256SUMS package
rm -rf *.tgz SHA256SUMS package
rm -rf ._*

mkdir package
cp *.py manifest.json LICENSE README.md package/
cp -r pkg css images js views package/

find package -type f -name '*.pyc' -delete
find package -type d -empty -delete

cd package
find . -type f \! -name SHA256SUMS -exec sha256sum {} \; >> SHA256SUMS
cd ..
Expand Down

0 comments on commit f4f7ee7

Please sign in to comment.