2_extract.sh 999 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Extracts all dependencies and places them in the pynsist_pkgs folder
  2. mkdir pynsist_pkgs
  3. # Unzip the bindings
  4. 7z x numpy.whl -onumpy
  5. 7z x matplotlib.exe -omatplotlib
  6. 7z x pygi.exe -opygi
  7. # Copy matplotlib and numpy into the pynsist_pkgs folder and delete the folders
  8. cp -r matplotlib/PLATLIB/matplotlib pynsist_pkgs
  9. rm -r matplotlib
  10. cp -r numpy/numpy pynsist_pkgs
  11. rm -r numpy
  12. # Copy the PyGI packages into the pynsist_pkgs folder
  13. 7z x pygi/binding/py3.4-64/py3.4-64.7z -obindings
  14. cp -r bindings/* pynsist_pkgs
  15. rm -r bindings
  16. # Copy the noarch and specified architecture dependencies into the gnome folder
  17. array=( ATK Base GDK GDKPixbuf GTK JPEG Pango WebP TIFF )
  18. for i in "${array[@]}"
  19. do
  20. echo -e "\nProcessing $i dependency"
  21. 7z x pygi/noarch/$i/$i.data.7z -o$i-noarch
  22. cp -r $i-noarch/gnome/* pynsist_pkgs/gnome
  23. rm -r $i-noarch
  24. 7z x pygi/rtvc10-64/$i/$i.bin.7z -o$i-arch
  25. cp -r $i-arch/gnome/* pynsist_pkgs/gnome
  26. rm -r $i-arch
  27. done
  28. #Remove pygi Folder
  29. rm -r pygi