checks-parser/deploy/appimage/deploy.sh

26 lines
686 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 \
"#!/usr/bin/env bash
export TESSDATA_PREFIX=usr/share/tesseract-ocr/4.00/tessdata
./usr/bin/checks-parser" \
> AppDir/AppRun
chmod +x AppDir/AppRun
cp ../../checks-parser AppDir/usr/bin
linuxdeployqt AppDir/usr/bin/checks-parser -no-copy-copyright-files -appimage