Don't put "dist" directory in archive

This commit is contained in:
Samuel Sloniker 2024-07-28 15:19:12 -07:00
parent a9be654176
commit c8fa8908af

View File

@ -1,17 +1,17 @@
#!/bin/sh
arch=$(uname -m)
distDir=dist/navpoint-linux-$arch
distDir=navpoint-linux-$arch
rm -rf $distDir
mkdir $distDir
rm -rf dist/$distDir
mkdir -p dist/$distDir
pyinstaller -w -F --hidden-import tornado.web main.py
mv dist/main $distDir/navpoint
cp icon.png $distDir/navpoint.png
mv dist/main dist/$distDir/navpoint
cp icon.png dist/$distDir/navpoint.png
cat > $distDir/navpoint.desktop << HERE
cat > dist/$distDir/navpoint.desktop << HERE
[Desktop Entry]
Type=Application
Terminal=false
@ -22,7 +22,7 @@ Categories=Application;Network
StartupWMClass=navpoint
HERE
cat > $distDir/install.sh << HERE
cat > dist/$distDir/install.sh << HERE
#!/bin/sh
binary_target=~/.local/bin/
@ -38,6 +38,8 @@ cp navpoint.desktop \$desktop_target/navpoint.desktop
cp navpoint.png \$icon_target/navpoint.png
HERE
chmod +x $distDir/install.sh
chmod +x dist/$distDir/install.sh
cd dist
tar -czf $distDir.tar.gz $distDir