Repo for the search and displace ingest module that takes odf, docx and pdf and transforms it into .md to be used with search and displace operations
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.

28 lines
909 B

3 years ago
  1. set -e
  2. RELEASE_DIR=../_internal/Release-GUI
  3. rm -f $RELEASE_DIR/*.zip
  4. # get version from Lazarus project file
  5. source ./get_gui_versions.sh
  6. VERSION_STR=$MAJOR_VER.$MINOR_VER
  7. echo "Building RELEASE zip for v$VERSION_STR"
  8. # create the zip in Linux/WSL so the permissions are presserved
  9. chmod 755 $RELEASE_DIR/deskewgui
  10. chmod 644 $RELEASE_DIR/DeskewGui-$VERSION_STR.dmg
  11. ZIP_CMD="zip -j -9 $RELEASE_DIR/DeskewGui-$VERSION_STR.zip -@"
  12. echo $RELEASE_DIR/deskewgui | $ZIP_CMD
  13. echo $RELEASE_DIR/deskewgui.exe | $ZIP_CMD
  14. echo $RELEASE_DIR/DeskewGui-$VERSION_STR.dmg | $ZIP_CMD
  15. # check expected contents
  16. OUTPUT=$(unzip -Z $RELEASE_DIR/DeskewGui-$VERSION_STR.zip)
  17. echo "$OUTPUT" | grep -q "^-r.xr.xr.x.*unx.*deskewgui$"
  18. echo "$OUTPUT" | grep -q "^-.*unx.*deskewgui.exe$"
  19. echo "$OUTPUT" | grep -q "^-r..r..r...*unx.*DeskewGui-$VERSION_STR.dmg$"
  20. echo "Finished OK with $RELEASE_DIR/DeskewGui-$VERSION_STR.zip!"