Updated instructions for Standalone Build (no dotnet runtime required)

This commit is contained in:
Mbucari 2022-07-31 22:37:42 -06:00 committed by GitHub
parent f1ba2b4ae8
commit dc6aaf2dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,51 +7,7 @@ Some limitations of the linux release are:
- The "Hangover" app for debugging is not yet available. - The "Hangover" app for debugging is not yet available.
## Dependencies ## Dependencies
### Dotnet Runtime
You must install the dotnet 6.0 runtime on your machine.
First, add the Microsoft package signing key to your list of trusted keys and add the package repository.
<details>
<summary>Ubuntu 22.04</summary>
```console
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
```
</details>
<details>
<summary>Ubuntu 21.10</summary>
```console
wget https://packages.microsoft.com/config/ubuntu/21.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
```
</details>
<details>
<summary>Ubuntu 20.04</summary>
```console
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
```
</details>
For other distributions, see [Microsoft's instructions for installing .NET on Linux](https://docs.microsoft.com/en-us/dotnet/core/install/linux).
Then install the dotnet 6.0 runtime
```console
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-runtime-6.0
```
### FFMpeg (Optional) ### FFMpeg (Optional)
If you want to convert your audiobooks to mp3, install FFMpeg using the following command: If you want to convert your audiobooks to mp3, install FFMpeg using the following command:
@ -67,8 +23,7 @@ Download the most recent linux-64 binaries zip file and save it as `libation-lin
<summary>install-libation.sh</summary> <summary>install-libation.sh</summary>
```BASH ```BASH
#!/bin/bash #!/bin/bash
FILE=$1 FILE=$1
@ -77,10 +32,10 @@ Download the most recent linux-64 binaries zip file and save it as `libation-lin
exit exit
fi fi
if [ "$EUID" -ne 0 ] if [[ "$EUID" -ne 0 ]]
then echo "Please run as root" then echo "Please run as root"
exit exit
fi fi
if [ ! -f "$FILE" ] if [ ! -f "$FILE" ]
then echo "The file \"$FILE\" does not exist." then echo "The file \"$FILE\" does not exist."
@ -99,12 +54,13 @@ fi
exit exit
fi fi
sudo -u $SUDO_USER chmod +700 ${FOLDER}/Libation sudo -u $SUDO_USER chmod +700 ${FOLDER}/Libation
sudo -u $SUDO_USER chmod +700 ${FOLDER}/Hangover
sudo -u $SUDO_USER chmod +700 ${FOLDER}/LibationCli sudo -u $SUDO_USER chmod +700 ${FOLDER}/LibationCli
#Remove previous installation program files and sym link #Remove previous installation program files and sym link
rm /usr/bin/Libation rm /usr/bin/Libation
rm /usr/bin/Hangover
rm /usr/bin/LibationCli rm /usr/bin/LibationCli
rm /usr/bin/libationcli rm /usr/bin/libationcli
rm /usr/lib/libation -r rm /usr/lib/libation -r
@ -117,11 +73,11 @@ fi
chmod +666 /usr/share/icons/hicolor/scalable/apps/libation.svg chmod +666 /usr/share/icons/hicolor/scalable/apps/libation.svg
gtk-update-icon-cache -f /usr/share/icons/hicolor/ gtk-update-icon-cache -f /usr/share/icons/hicolor/
ln -s /usr/lib/libation/Libation /usr/bin/Libation ln -s /usr/lib/libation/Libation /usr/bin/Libation
ln -s /usr/lib/libation/Hangover /usr/bin/Hangover
ln -s /usr/lib/libation/LibationCli /usr/bin/LibationCli ln -s /usr/lib/libation/LibationCli /usr/bin/LibationCli
ln -s /usr/lib/libation/LibationCli /usr/bin/libationcli ln -s /usr/lib/libation/LibationCli /usr/bin/libationcli
echo "Done!" echo "Done!"
``` ```
</details> </details>