2_extract.sh 967 B

1234567891011121314151617181920212223242526272829303132333435
  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. set -e
  4. mkdir pynsist_pkgs
  5. # Unzip the bindings
  6. 7z x pygi.exe -opygi
  7. # Copy the PyGI packages into the pynsist_pkgs folder
  8. # TODO: Update to Python 3.6
  9. 7z x pygi/binding/py3.4-64/py3.4-64.7z -obindings
  10. cp -r bindings/* pynsist_pkgs
  11. rm -r bindings
  12. # Copy the noarch and specified architecture dependencies into the gnome folder
  13. array=( ATK Base GDK GDKPixbuf GTK HarfBuzz JPEG Pango WebP TIFF )
  14. for i in "${array[@]}"
  15. do
  16. echo -e "\nProcessing $i dependency"
  17. 7z x pygi/noarch/$i/$i.data.7z -o$i-noarch
  18. cp -r $i-noarch/gnome/* pynsist_pkgs/gnome
  19. rm -r $i-noarch
  20. 7z x pygi/rtvc10-64/$i/$i.bin.7z -o$i-arch
  21. cp -r $i-arch/gnome/* pynsist_pkgs/gnome
  22. rm -r $i-arch
  23. done
  24. #Remove pygi Folder
  25. rm -r pygi
  26. #Compile glib schemas
  27. glib-compile-schemas pynsist_pkgs/gnome/share/glib-2.0/schemas/