mirror of
https://gh.wpcy.net/https://github.com/bohdanbobrowski/blog2epub.git
synced 2026-04-24 15:29:14 +08:00
16 lines
No EOL
474 B
Bash
Executable file
16 lines
No EOL
474 B
Bash
Executable file
#!/bin/bash
|
|
|
|
rm -rf ./build
|
|
rm -rf ./dist
|
|
pyinstaller blog2epub_gui_linux.spec
|
|
cp -v ./blog2epub/assets/*.ttf ./dist/
|
|
cp -v ./images/blog2epub.svg ./dist/
|
|
cp -v ./images/blog2epub.png ./dist/
|
|
cp -v ./images/blog2epub.icns ./dist/
|
|
cd ./dist/
|
|
export PWD=`pwd`
|
|
export B2EPATH="$PWD/blog2epub"
|
|
gendesk -f --pkgname="blog2epub" --pkgdesc="Blog To Epub Downloader" --icon="$B2EPATH.icns" --exec="$B2EPATH"
|
|
cd ..
|
|
chmod +x ${B2EPATH}.desktop
|
|
desktop-file-validate ${B2EPATH}.desktop |