diff --git a/docs/changelog.rst b/docs/changelog.rst index 0da528b60..86a24df27 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,19 @@ Changelog ********* +next +#### + +* Paperless now uses mime types and libmagic detection to determine + if a file type is supported and which parser to use. Removes all + file type checks that where present in MANY different places in + paperless. + +* Mail consumer now correctly consumes documents even when their + content type was not set correctly. (i.e. PDF documents with + content type ``application/octet-stream``) + + paperless-ng 0.9.1 ################## diff --git a/scripts/make-release.sh b/scripts/make-release.sh index ef3e5769b..06548748b 100755 --- a/scripts/make-release.sh +++ b/scripts/make-release.sh @@ -17,6 +17,7 @@ PAPERLESS_ROOT=$(git rev-parse --show-toplevel) # output directory PAPERLESS_DIST="$PAPERLESS_ROOT/dist" PAPERLESS_DIST_APP="$PAPERLESS_DIST/paperless-ng" +PAPERLESS_DIST_DOCKERFILES="$PAPERLESS_DIST/paperless-ng-dockerfiles" if [ -d "$PAPERLESS_DIST" ] then @@ -27,6 +28,7 @@ fi mkdir "$PAPERLESS_DIST" mkdir "$PAPERLESS_DIST_APP" mkdir "$PAPERLESS_DIST_APP/docker" +mkdir "$PAPERLESS_DIST_DOCKERFILES" # setup dependencies. @@ -78,9 +80,9 @@ cp "$PAPERLESS_ROOT/docker/local/"* "$PAPERLESS_DIST_APP" cp "$PAPERLESS_ROOT/docker/docker-compose.env" "$PAPERLESS_DIST_APP" # docker files for pulling from docker hub -cp "$PAPERLESS_ROOT/docker/hub/"* "$PAPERLESS_DIST" -cp "$PAPERLESS_ROOT/.env" "$PAPERLESS_DIST" -cp "$PAPERLESS_ROOT/docker/docker-compose.env" "$PAPERLESS_DIST" +cp "$PAPERLESS_ROOT/docker/hub/"* "$PAPERLESS_DIST_DOCKERFILES" +cp "$PAPERLESS_ROOT/.env" "$PAPERLESS_DIST_DOCKERFILES" +cp "$PAPERLESS_ROOT/docker/docker-compose.env" "$PAPERLESS_DIST_DOCKERFILES" # auxiliary files required for the docker image cp "$PAPERLESS_ROOT/docker/docker-entrypoint.sh" "$PAPERLESS_DIST_APP/docker/" @@ -99,3 +101,4 @@ docker build . -t "jonaswinkler/paperless-ng:$VERSION" cd "$PAPERLESS_DIST" tar -cJf "paperless-ng-$VERSION.tar.xz" paperless-ng/ +tar -cJf "paperless-ng-$VERSION-dockerfiles.tar.xz" paperless-ng-dockerfiles/