Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

29 rindas
710 B

  1. #!/usr/bin/env bash
  2. if [ ! -f readme.md ]; then
  3. echo "You seems to be in the wrong directory"
  4. echo "Execute this script from the root of lesspass with ./scripts/zip-src-for-webextension.sh"
  5. exit 1
  6. fi
  7. CWD="$(pwd)"
  8. cd webextension
  9. VERSION="$(git describe --abbrev=0 --tags)"
  10. git archive -o webextension.zip master
  11. mv webextension.zip /tmp
  12. cd ../pure/
  13. git archive -o pure.zip master
  14. mv pure.zip /tmp
  15. cd /tmp
  16. mkdir LessPass
  17. mv pure.zip LessPass/
  18. mv webextension.zip LessPass/
  19. cd LessPass/
  20. unzip pure.zip -d pure
  21. unzip webextension.zip -d webextension
  22. rm pure.zip webextension.zip
  23. zip -r LessPass-src-$VERSION.zip pure webextension
  24. mv LessPass-src-$VERSION.zip ~/Desktop/
  25. cd $CWD
  26. rm -rf /tmp/LessPass