checks-parser/deploy/appimage/deploy.sh

29 lines
739 B
Bash
Raw Normal View History

2024-12-02 00:14:12 +03:00
#!/usr/bin/env bash
mkdir -p AppDir/usr/bin
2024-12-02 01:14:42 +03:00
mkdir -p AppDir/usr/lib
mkdir -p AppDir/usr/share/tesseract-ocr/4.00/tessdata
cp -r /usr/share/tesseract-ocr/4.00/tessdata/* AppDir/usr/share/tesseract-ocr/4.00/tessdata
2024-12-02 00:14:12 +03:00
cp ../../checks-parser AppDir/usr/bin
2024-12-02 00:14:12 +03:00
echo \
"[Desktop Entry]
Name=Checks parser
Exec=usr/bin/checks-parser
Icon=checks-parser
Type=Application
Categories=Utility;" \
2024-12-02 00:14:12 +03:00
> AppDir/checks-parser.desktop
echo \
2024-12-03 03:45:58 +03:00
"#!/bin/bash
export TESSDATA_PREFIX=\$APPDIR/usr/share/tesseract-ocr/4.00/tessdata
\$APPDIR/usr/bin/checks-parser" \
> AppDir/AppRun
2024-12-04 04:05:02 +03:00
cp ../../icon.png AppDir/checks-parser.png
2024-12-04 01:07:48 +03:00
chmod +x AppDir/AppRun
cp ../../checks-parser AppDir/usr/bin
linuxdeployqt AppDir/usr/bin/checks-parser -no-copy-copyright-files -appimage