Format Linux build script

This commit is contained in:
Samuel Sloniker 2024-07-29 08:32:31 -07:00
parent 950c052e3f
commit 3d5aa298c9

View File

@ -6,13 +6,21 @@ distName=navpoint-linux-$arch
rm -rf dist/$distName-bundle rm -rf dist/$distName-bundle
mkdir -p dist/$distName-bundle mkdir -p dist/$distName-bundle
pyinstaller -w -F --hidden-import tornado.web --add-data README.md:files --add-data GPL-3.0.txt:files --add-data CC-BY-SA-4.0.txt:files main.py pyinstaller --windowed --onefile \
--hidden-import tornado.web \
--add-data README.md:files \
--add-data GPL-3.0.txt:files \
--add-data CC-BY-SA-4.0.txt:files \
main.py
cp dist/main dist/$distName-standalone cp dist/main dist/$distName-standalone
mv dist/main dist/$distName-bundle/navpoint mv dist/main dist/$distName-bundle/navpoint
cp icon.png dist/$distName-bundle/navpoint.png cp icon.png dist/$distName-bundle/navpoint.png
cp GPL-3.0.txt CC-BY-SA-4.0.txt dist/$distName-bundle/ cp GPL-3.0.txt CC-BY-SA-4.0.txt dist/$distName-bundle/
pandoc -s --metadata "title=Navpoint Desktop" README.md | grep -v 'h1 id="navpoint-desktop"' > dist/$distName-bundle/README.html pandoc -s --metadata "title=Navpoint Desktop" README.md |
grep -v 'h1 id="navpoint-desktop"' \
> dist/$distName-bundle/README.html
cat > dist/$distName-bundle/navpoint.desktop << HERE cat > dist/$distName-bundle/navpoint.desktop << HERE
[Desktop Entry] [Desktop Entry]