From 3d5aa298c9ccdbadef9d1c4baa7016d12aa3136b Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Mon, 29 Jul 2024 08:32:31 -0700 Subject: [PATCH] Format Linux build script --- build-linux.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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]