From c8fa8908af9cc462219515fcc3ef993fbeaf3ac5 Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Sun, 28 Jul 2024 15:19:12 -0700 Subject: [PATCH] Don't put "dist" directory in archive --- build-linux.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/build-linux.sh b/build-linux.sh index 7c624b8..4049a70 100755 --- a/build-linux.sh +++ b/build-linux.sh @@ -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