diff --git a/build-linux.sh b/build-linux.sh index d3e8701..e72458b 100755 --- a/build-linux.sh +++ b/build-linux.sh @@ -6,13 +6,21 @@ distName=navpoint-linux-$arch rm -rf 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 mv dist/main dist/$distName-bundle/navpoint cp icon.png dist/$distName-bundle/navpoint.png + 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 [Desktop Entry]