No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

make_release.sh 992B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. release_folder=windows_release
  3. gtk_path=/opt/gtkwin
  4. rm -rf $release_folder
  5. rm $release_folder.zip
  6. mkdir $release_folder
  7. mkdir $release_folder/share
  8. mkdir $release_folder/share/themes
  9. mkdir $release_folder/share/gtk-3.0
  10. echo -e "[Settings]\ngtk-theme-name = Windows10\ngtk-font-name = Segoe UI 10\ngtk-xft-rgba = rgb" > $release_folder/share/gtk-3.0/settings.ini
  11. export PKG_CONFIG_ALLOW_CROSS=1
  12. export PKG_CONFIG_PATH=$gtk_path/lib/pkgconfig
  13. cargo build --target=x86_64-pc-windows-gnu --release
  14. if [ $? -ne 0]
  15. then
  16. echo Compilation Failed
  17. return 1
  18. fi
  19. cp target/x86_64-pc-windows-gnu/release/*.exe $release_folder
  20. cp $gtk_path/bin/*.dll $release_folder
  21. mkdir -p $release_folder/share/glib-2.0/schemas
  22. mkdir $release_folder/share/icons
  23. cp $gtk_path/share/glib-2.0/schemas/* $release_folder/share/glib-2.0/schemas
  24. cp -r $gtk_path/share/icons/* $release_folder/share/icons
  25. cp theme/Windows-10-master $release_folder/share/themes/Windows10 -r
  26. zip -r release.zip $release_folder