Skip to content

Commit

Permalink
packaging stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Sep 27, 2018
1 parent 64019fd commit 9c2b862
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 61 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ The Crayfish Plugin is a visualiser for temporal structured/unstructured grids i

You can use Crayfish to load the file formats supported by [MDAL](https://github.com/lutraconsulting/MDAL)

Works on Windows, Linux and MacOS.

### Using Crayfish

For instructions of how to install and use Crayfish, please refer to the [Crayfish resources page][crp] on our website.
Expand All @@ -16,7 +18,3 @@ For instructions of how to install and use Crayfish, please refer to the [Crayfi
Use QGIS3 plugin manager to install latest crayfish version.

[crp]: http://www.lutraconsulting.co.uk/resources/crayfish

### Developement

building of resources files `pyrcc5 -o resources.py resources.qrc`
114 changes: 57 additions & 57 deletions crayfish/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,55 +84,6 @@
\x71\x6c\x8e\xa8\x63\xbf\xe6\x94\x81\xbe\x74\xaa\xec\x6f\xcb\x7f\
\xb4\xb6\x4c\x23\x75\x41\x08\x6b\x00\x00\x00\x00\x49\x45\x4e\x44\
\xae\x42\x60\x82\
\x00\x00\x02\xe1\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\xa0\xbd\
\xa7\x93\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x2e\x23\x00\x00\
\x2e\x23\x01\x78\xa5\x3f\x76\x00\x00\x00\x07\x74\x49\x4d\x45\x07\
\xdf\x03\x0c\x10\x1d\x16\x35\x54\xbb\x0f\x00\x00\x02\x6e\x49\x44\
\x41\x54\x48\xc7\xed\x95\x3b\x88\x14\x69\x14\x85\xbf\xd3\xce\xcc\
\x8a\xa2\xa2\x20\x5a\x35\xce\x04\x03\x8a\x81\x53\x25\x42\x95\x9a\
\x99\x6d\xb0\x91\x89\x99\x8a\x81\x49\x8f\x22\x46\x82\xb1\xc1\x86\
\x26\x6a\x2c\x3e\xd0\x85\xcd\xd6\x4c\x41\xcc\xac\x46\xb1\x7a\x50\
\x44\x04\xa5\xc7\xae\xf2\x85\x2f\x94\x11\xd1\x3e\x06\x5d\xf3\xc0\
\xe9\x1e\x35\x5b\xc1\x9b\xd4\x5f\x9c\xbf\xee\xb9\xf7\x3f\xe7\xbf\
\x05\xbf\xe3\x97\x88\xd3\xc3\x23\x8b\xe2\xa7\xc2\x0d\x7d\x31\xf5\
\x03\x8a\x28\x21\x6c\x36\x66\xdf\xf7\xad\x58\x31\xb0\x63\xe5\xea\
\x4d\x36\x63\x12\x4b\xb1\x3f\x76\xc4\xc3\x43\xed\xa9\xfb\x73\x44\
\x23\x4c\x14\x53\xfd\x09\xca\x28\xc1\x82\x30\x6f\x50\x46\xe9\x12\
\xe4\x8d\xc0\x41\xd0\xfa\xd6\xc7\xe9\x5b\xb7\xdf\xbf\x3d\xd0\xc1\
\x5b\x84\x30\xa6\xfb\xc4\xd8\xff\x48\x3a\x09\xe4\xf5\x76\x6b\xfa\
\xd4\xf0\x28\xd8\x4c\x14\x53\xdf\x10\x6c\xdd\x4e\x70\xe7\x26\x45\
\x94\x8c\x49\x1c\x07\xed\xc7\x1e\x30\x50\x93\x00\x8e\x5d\x7e\x5e\
\xec\x18\xac\xd5\x76\x03\xee\x71\x02\x39\xf0\x77\xbd\xdd\xba\xb4\
\xa0\x83\x62\x3c\x25\x9c\xcc\x28\xa2\x64\x97\xa4\xf3\xc0\x70\x05\
\x19\xc0\xb6\x24\xf1\x60\xfa\xc3\x5f\x93\xef\xdf\x5d\xac\x49\xab\
\x2a\xf4\x02\xf2\x15\xe0\x1e\xe6\x0b\x22\x30\x2a\x26\xda\xad\xbb\
\xb3\x04\x33\xe7\x5d\x44\xe9\x36\x89\x1b\xd8\xcb\xd1\x42\x79\x0c\
\x7c\x71\xe7\xca\xbf\x2f\x9e\xbe\x18\x94\x96\x09\xf6\xd6\x8b\xa9\
\x4f\x3d\x8d\x11\x8e\x52\x2f\x5a\x68\x5e\xf2\x31\x89\x86\xcd\x1a\
\xa9\x67\xfb\xdd\xd3\xc6\xcf\xae\xbe\x79\xb9\x73\x5f\xeb\xd1\xe3\
\xae\xc3\x46\xa9\xb7\x5b\x8b\xbb\xa8\x8c\xd2\x01\xc4\x2d\x9b\xa8\
\x6f\xf2\x8a\x00\xf1\xb2\x06\xdb\xd6\xe5\xd9\x93\x1f\xb1\x78\x0d\
\x20\x68\x66\x9f\xc1\x05\xf2\xe2\xbb\x85\x80\xc1\x0e\xac\x05\x28\
\xe3\xf4\xfb\x04\x45\x9c\x54\xd5\x69\x8f\xd0\x64\x55\x7d\x7f\x26\
\x7b\x15\x70\x18\x20\xc8\xb3\xae\x41\x66\x72\x00\xed\x79\xeb\x62\
\x3c\x9d\x11\x39\x25\x6c\x66\x94\x71\x32\x62\x74\x0d\xbc\x51\x60\
\x7a\x29\xdd\x75\x54\x47\x52\x13\x38\x1a\xe4\xd9\xf5\x6f\xf1\x76\
\x94\xfc\x21\xcb\xe1\x64\xf6\x49\x3d\x6e\xf0\x06\xe0\x3f\x49\xd1\
\x8c\x35\x7b\xaa\x31\xa7\xd3\x07\xe0\x26\xb8\x00\x2d\x35\x04\x82\
\xd3\x41\x9e\x5d\x5c\x78\x93\xe3\x94\x20\xcf\x28\xe3\x74\xc8\xf6\
\x51\x49\x13\xc0\xc8\xbc\xac\xd6\xdc\x37\xb3\x24\xae\x56\xb2\xcf\
\x21\x4e\x04\x79\xe3\x41\x19\xa7\xbd\xdd\x52\x46\x09\x41\x35\x83\
\xca\x38\x5d\x63\xfb\x4f\xe0\x88\xa4\xed\x0b\x8b\xef\x36\x6d\x7c\
\x46\xd6\x59\xe4\x32\xc8\x1b\x9f\xe7\xcf\xb1\xbe\xc3\xae\x8c\x13\
\x6c\x11\x36\x2b\x21\x37\xc7\x4b\x34\x34\x14\x81\x86\x2d\xd7\xb0\
\x5e\x83\xef\x86\xcd\xc6\xab\xb9\xe2\x52\x82\x6a\xff\x4f\x45\xb1\
\x69\x7c\x71\x3c\x4a\x7e\xff\xd3\xfe\xc7\xf1\x15\xb3\xdc\x0e\x01\
\x27\x06\xce\x4a\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\
\x00\x00\x04\x94\
\x00\
\x00\x0f\xc0\x78\x9c\xad\x57\x4d\x6f\xdb\x38\x10\xbd\xe7\x57\x08\
Expand Down Expand Up @@ -209,6 +160,55 @@
\x1a\x79\x1b\x68\xa1\xc6\xb9\x8a\x24\xc2\x21\x76\xc2\x4e\x5d\x98\
\xd5\x6e\xa2\xb1\x49\xd7\xf0\x0b\x5c\xff\xec\xb9\xbf\xf9\x0f\x2c\
\xe3\x3e\x6d\
\x00\x00\x02\xe1\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x00\x06\x62\x4b\x47\x44\x00\xff\x00\xff\x00\xff\xa0\xbd\
\xa7\x93\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x2e\x23\x00\x00\
\x2e\x23\x01\x78\xa5\x3f\x76\x00\x00\x00\x07\x74\x49\x4d\x45\x07\
\xdf\x03\x0c\x10\x1d\x16\x35\x54\xbb\x0f\x00\x00\x02\x6e\x49\x44\
\x41\x54\x48\xc7\xed\x95\x3b\x88\x14\x69\x14\x85\xbf\xd3\xce\xcc\
\x8a\xa2\xa2\x20\x5a\x35\xce\x04\x03\x8a\x81\x53\x25\x42\x95\x9a\
\x99\x6d\xb0\x91\x89\x99\x8a\x81\x49\x8f\x22\x46\x82\xb1\xc1\x86\
\x26\x6a\x2c\x3e\xd0\x85\xcd\xd6\x4c\x41\xcc\xac\x46\xb1\x7a\x50\
\x44\x04\xa5\xc7\xae\xf2\x85\x2f\x94\x11\xd1\x3e\x06\x5d\xf3\xc0\
\xe9\x1e\x35\x5b\xc1\x9b\xd4\x5f\x9c\xbf\xee\xb9\xf7\x3f\xe7\xbf\
\x05\xbf\xe3\x97\x88\xd3\xc3\x23\x8b\xe2\xa7\xc2\x0d\x7d\x31\xf5\
\x03\x8a\x28\x21\x6c\x36\x66\xdf\xf7\xad\x58\x31\xb0\x63\xe5\xea\
\x4d\x36\x63\x12\x4b\xb1\x3f\x76\xc4\xc3\x43\xed\xa9\xfb\x73\x44\
\x23\x4c\x14\x53\xfd\x09\xca\x28\xc1\x82\x30\x6f\x50\x46\xe9\x12\
\xe4\x8d\xc0\x41\xd0\xfa\xd6\xc7\xe9\x5b\xb7\xdf\xbf\x3d\xd0\xc1\
\x5b\x84\x30\xa6\xfb\xc4\xd8\xff\x48\x3a\x09\xe4\xf5\x76\x6b\xfa\
\xd4\xf0\x28\xd8\x4c\x14\x53\xdf\x10\x6c\xdd\x4e\x70\xe7\x26\x45\
\x94\x8c\x49\x1c\x07\xed\xc7\x1e\x30\x50\x93\x00\x8e\x5d\x7e\x5e\
\xec\x18\xac\xd5\x76\x03\xee\x71\x02\x39\xf0\x77\xbd\xdd\xba\xb4\
\xa0\x83\x62\x3c\x25\x9c\xcc\x28\xa2\x64\x97\xa4\xf3\xc0\x70\x05\
\x19\xc0\xb6\x24\xf1\x60\xfa\xc3\x5f\x93\xef\xdf\x5d\xac\x49\xab\
\x2a\xf4\x02\xf2\x15\xe0\x1e\xe6\x0b\x22\x30\x2a\x26\xda\xad\xbb\
\xb3\x04\x33\xe7\x5d\x44\xe9\x36\x89\x1b\xd8\xcb\xd1\x42\x79\x0c\
\x7c\x71\xe7\xca\xbf\x2f\x9e\xbe\x18\x94\x96\x09\xf6\xd6\x8b\xa9\
\x4f\x3d\x8d\x11\x8e\x52\x2f\x5a\x68\x5e\xf2\x31\x89\x86\xcd\x1a\
\xa9\x67\xfb\xdd\xd3\xc6\xcf\xae\xbe\x79\xb9\x73\x5f\xeb\xd1\xe3\
\xae\xc3\x46\xa9\xb7\x5b\x8b\xbb\xa8\x8c\xd2\x01\xc4\x2d\x9b\xa8\
\x6f\xf2\x8a\x00\xf1\xb2\x06\xdb\xd6\xe5\xd9\x93\x1f\xb1\x78\x0d\
\x20\x68\x66\x9f\xc1\x05\xf2\xe2\xbb\x85\x80\xc1\x0e\xac\x05\x28\
\xe3\xf4\xfb\x04\x45\x9c\x54\xd5\x69\x8f\xd0\x64\x55\x7d\x7f\x26\
\x7b\x15\x70\x18\x20\xc8\xb3\xae\x41\x66\x72\x00\xed\x79\xeb\x62\
\x3c\x9d\x11\x39\x25\x6c\x66\x94\x71\x32\x62\x74\x0d\xbc\x51\x60\
\x7a\x29\xdd\x75\x54\x47\x52\x13\x38\x1a\xe4\xd9\xf5\x6f\xf1\x76\
\x94\xfc\x21\xcb\xe1\x64\xf6\x49\x3d\x6e\xf0\x06\xe0\x3f\x49\xd1\
\x8c\x35\x7b\xaa\x31\xa7\xd3\x07\xe0\x26\xb8\x00\x2d\x35\x04\x82\
\xd3\x41\x9e\x5d\x5c\x78\x93\xe3\x94\x20\xcf\x28\xe3\x74\xc8\xf6\
\x51\x49\x13\xc0\xc8\xbc\xac\xd6\xdc\x37\xb3\x24\xae\x56\xb2\xcf\
\x21\x4e\x04\x79\xe3\x41\x19\xa7\xbd\xdd\x52\x46\x09\x41\x35\x83\
\xca\x38\x5d\x63\xfb\x4f\xe0\x88\xa4\xed\x0b\x8b\xef\x36\x6d\x7c\
\x46\xd6\x59\xe4\x32\xc8\x1b\x9f\xe7\xcf\xb1\xbe\xc3\xae\x8c\x13\
\x6c\x11\x36\x2b\x21\x37\xc7\x4b\x34\x34\x14\x81\x86\x2d\xd7\xb0\
\x5e\x83\xef\x86\xcd\xc6\xab\xb9\xe2\x52\x82\x6a\xff\x4f\x45\xb1\
\x69\x7c\x71\x3c\x4a\x7e\xff\xd3\xfe\xc7\xf1\x15\xb3\xdc\x0e\x01\
\x27\x06\xce\x4a\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
\
"

qt_resource_name = b"\
Expand All @@ -228,23 +228,23 @@
\x0e\x8a\x95\x47\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x5f\x00\x76\x00\x69\x00\x64\x00\x65\x00\x6f\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0c\
\x0d\xca\x48\xe7\
\x00\x63\
\x00\x72\x00\x61\x00\x79\x00\x66\x00\x69\x00\x73\x00\x68\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x0d\
\x0c\x2b\xd7\x87\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x5f\x00\x70\x00\x6c\x00\x6f\x00\x74\x00\x2e\x00\x73\x00\x76\x00\x67\
\x00\x0c\
\x0d\xca\x48\xe7\
\x00\x63\
\x00\x72\x00\x61\x00\x79\x00\x66\x00\x69\x00\x73\x00\x68\x00\x2e\x00\x70\x00\x6e\x00\x67\
"

qt_resource_struct_v1 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
\x00\x00\x00\x2a\x00\x02\x00\x00\x00\x03\x00\x00\x00\x04\
\x00\x00\x00\x7c\x00\x01\x00\x00\x00\x01\x00\x00\x07\x6e\
\x00\x00\x00\x5e\x00\x00\x00\x00\x00\x01\x00\x00\x04\x89\
\x00\x00\x00\x5e\x00\x01\x00\x00\x00\x01\x00\x00\x04\x89\
\x00\x00\x00\x7e\x00\x00\x00\x00\x00\x01\x00\x00\x09\x21\
\x00\x00\x00\x3c\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
"

Expand All @@ -257,9 +257,9 @@
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x2a\x00\x02\x00\x00\x00\x03\x00\x00\x00\x04\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x7c\x00\x01\x00\x00\x00\x01\x00\x00\x07\x6e\
\x00\x00\x00\x5e\x00\x01\x00\x00\x00\x01\x00\x00\x04\x89\
\x00\x00\x01\x65\xb3\x34\x26\x51\
\x00\x00\x00\x5e\x00\x00\x00\x00\x00\x01\x00\x00\x04\x89\
\x00\x00\x00\x7e\x00\x00\x00\x00\x00\x01\x00\x00\x09\x21\
\x00\x00\x01\x65\xb3\x34\x26\x4f\
\x00\x00\x00\x3c\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x01\x66\x0f\xdc\xde\x1e\
Expand Down
16 changes: 16 additions & 0 deletions package.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
###########################################################################
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
###########################################################################

set -e
cd crayfish
pyrcc5 -o resources.py resources.qrc
cd ..

rm -f crayfish.zip && cd crayfish && git archive --prefix=crayfish/ -o ../crayfish.zip HEAD
14 changes: 14 additions & 0 deletions resources.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
###########################################################################
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
###########################################################################

set -e
cd crayfish
pyrcc5 -o resources.py resources.qrc
cd ..

0 comments on commit 9c2b862

Please sign in to comment.