1
0

2_extract.sh 1.1 KB

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