Skip to content

Commit

Permalink
- auto sudo linux
Browse files Browse the repository at this point in the history
  • Loading branch information
BeanVortex committed Dec 15, 2023
1 parent 63a10ef commit a645393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions builders/linux-installer/install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/bin/bash

if [ "$EUID" -ne 0 ]
then
echo "Please run as root to copy the application folder and files to /usr/share and /usr/bin"
exit
fi
# sudo
[ "$UID" -eq 0 ] || exec sudo "$0" "$@"

desktopFile="BitKip.desktop"
uninstallDesktopFile="BitKipUninstall.desktop"
Expand Down
1 change: 1 addition & 0 deletions builders/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ echo "moving files to releases"
#ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
#mv ./build/jpackage/$FILE_NAME* ./build/releases/
mv ./build/libs/*.jar ./build/releases/$FILE_NAME-linux.jar
chmod +x ./*.run
mv ./*.run ./build/releases
ls ./build/releases

0 comments on commit a645393

Please sign in to comment.