single AppImage file
- simplify cmake install prefix and assets directory
This commit is contained in:
parent
9a95ce5132
commit
8b0e6a28c2
8 changed files with 155 additions and 69 deletions
|
|
@ -6,41 +6,10 @@ package_name=org.macports.Sunshine
|
|||
echo "Removing files now..."
|
||||
FILES=$(pkgutil --files $package_name --only-files)
|
||||
|
||||
remove_config=True
|
||||
remove_apps=True
|
||||
|
||||
for file in ${FILES}; do
|
||||
file="/$file"
|
||||
remove_current=True
|
||||
if [[ $file == *sunshine.conf ]]; then
|
||||
if [[ $remove_config == True ]]; then
|
||||
while true; do
|
||||
read -p -r "Do you wish to remove 'sunshine.conf'?" yn
|
||||
case $yn in
|
||||
[Yy]* ) echo "removing: $file"; rm -f "$file"; break;;
|
||||
[Nn]* ) remove_config=False; remove_current=False; break;;
|
||||
* ) echo "Please answer yes or no.";;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
fi
|
||||
if [[ $file == *apps.json ]]; then
|
||||
if [[ $remove_apps == True ]]; then
|
||||
while true; do
|
||||
read -p -r "Do you wish to remove 'apps.conf'?" yn
|
||||
case $yn in
|
||||
[Yy]* ) echo "removing: $file"; rm -f "$file"; break;;
|
||||
[Nn]* ) remove_apps=False; remove_current=False; break;;
|
||||
* ) echo "Please answer yes or no.";;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $remove_current == True ]]; then
|
||||
echo "removing: $file"
|
||||
rm -f "$file"
|
||||
fi
|
||||
echo "removing: $file"
|
||||
rm -f "$file"
|
||||
done
|
||||
|
||||
echo "Removing directories now..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue