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