Standalone Linux build
This commit is contained in:
parent
d8964a7a0c
commit
0b0708f704
|
@ -1,19 +1,20 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
distDir=navpoint-linux-$arch
|
distName=navpoint-linux-$arch
|
||||||
|
|
||||||
rm -rf dist/$distDir
|
rm -rf dist/$distName-bundle
|
||||||
mkdir -p dist/$distDir
|
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 -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
|
||||||
|
|
||||||
mv dist/main dist/$distDir/navpoint
|
cp dist/main dist/$distName-standalone
|
||||||
cp icon.png dist/$distDir/navpoint.png
|
mv dist/main dist/$distName-bundle/navpoint
|
||||||
cp GPL-3.0.txt CC-BY-SA-4.0.txt dist/$distDir/
|
cp icon.png dist/$distName-bundle/navpoint.png
|
||||||
pandoc -s --metadata "title=Navpoint Desktop" README.md | grep -v 'h1 id="navpoint-desktop"' > dist/$distDir/README.html
|
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
|
||||||
|
|
||||||
cat > dist/$distDir/navpoint.desktop << HERE
|
cat > dist/$distName-bundle/navpoint.desktop << HERE
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
|
@ -24,7 +25,7 @@ Categories=Application;Network
|
||||||
StartupWMClass=navpoint
|
StartupWMClass=navpoint
|
||||||
HERE
|
HERE
|
||||||
|
|
||||||
cat > dist/$distDir/install.sh << HERE
|
cat > dist/$distName-bundle/install.sh << HERE
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
binary_target=~/.local/bin/
|
binary_target=~/.local/bin/
|
||||||
|
@ -40,8 +41,8 @@ cp navpoint.desktop \$desktop_target/navpoint.desktop
|
||||||
|
|
||||||
cp navpoint.png \$icon_target/navpoint.png
|
cp navpoint.png \$icon_target/navpoint.png
|
||||||
HERE
|
HERE
|
||||||
chmod +x dist/$distDir/install.sh
|
chmod +x dist/$distName-bundle/install.sh
|
||||||
|
|
||||||
cd dist
|
cd dist
|
||||||
|
|
||||||
tar -czf $distDir.tar.gz $distDir
|
tar -czf $distName-bundle.tar.gz $distName-bundle
|
||||||
|
|
Loading…
Reference in New Issue
Block a user