Linux instructions
This commit is contained in:
parent
3fc1da66de
commit
6de3a8a2bf
@ -30,7 +30,7 @@ namespace LibationAvalonia
|
|||||||
public static IAssetLoader AssetLoader { get; private set; }
|
public static IAssetLoader AssetLoader { get; private set; }
|
||||||
|
|
||||||
public static readonly Uri AssetUriBase = new Uri("avares://Libation/Assets/");
|
public static readonly Uri AssetUriBase = new Uri("avares://Libation/Assets/");
|
||||||
public static System.IO.Stream OpenAsset(string assetRelativePath)
|
public static Stream OpenAsset(string assetRelativePath)
|
||||||
=> AssetLoader.Open(new Uri(AssetUriBase, assetRelativePath));
|
=> AssetLoader.Open(new Uri(AssetUriBase, assetRelativePath));
|
||||||
|
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ namespace LibationAvalonia
|
|||||||
var startInfo = new System.Diagnostics.ProcessStartInfo()
|
var startInfo = new System.Diagnostics.ProcessStartInfo()
|
||||||
{
|
{
|
||||||
FileName = "/bin/xdg-open",
|
FileName = "/bin/xdg-open",
|
||||||
Arguments = path is null ? string.Empty : $"\"{System.IO.Path.GetDirectoryName(path)}\"",
|
Arguments = path is null ? string.Empty : $"\"{path}\"",
|
||||||
UseShellExecute = false, //Import in Linux environments
|
UseShellExecute = false, //Import in Linux environments
|
||||||
CreateNoWindow = false,
|
CreateNoWindow = false,
|
||||||
RedirectStandardOutput = true,
|
RedirectStandardOutput = true,
|
||||||
@ -89,12 +89,16 @@ namespace LibationAvalonia
|
|||||||
config.SetLibationFiles(defaultLibationFilesDir);
|
config.SetLibationFiles(defaultLibationFilesDir);
|
||||||
|
|
||||||
if (config.LibationSettingsAreValid)
|
if (config.LibationSettingsAreValid)
|
||||||
return;
|
{
|
||||||
|
LibraryTask = Task.Run(() => DbContexts.GetLibrary_Flat_NoTracking(includeParents: true));
|
||||||
var setupDialog = new SetupDialog { Config = config };
|
ShowMainWindow(desktop);
|
||||||
setupDialog.Closing += Setup_Closing;
|
}
|
||||||
|
else
|
||||||
desktop.MainWindow = setupDialog;
|
{
|
||||||
|
var setupDialog = new SetupDialog { Config = config };
|
||||||
|
setupDialog.Closing += Setup_Closing;
|
||||||
|
desktop.MainWindow = setupDialog;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ShowMainWindow(desktop);
|
ShowMainWindow(desktop);
|
||||||
@ -129,7 +133,8 @@ namespace LibationAvalonia
|
|||||||
MessageBox.VerboseLoggingWarning_ShowIfTrue();
|
MessageBox.VerboseLoggingWarning_ShowIfTrue();
|
||||||
|
|
||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
checkForUpdate();
|
//AutoUpdater.NET only works for WinForms or WPF application projects.
|
||||||
|
//checkForUpdate();
|
||||||
#endif
|
#endif
|
||||||
// logging is init'd here
|
// logging is init'd here
|
||||||
AppScaffolding.LibationScaffolding.RunPostMigrationScaffolding(setupDialog.Config);
|
AppScaffolding.LibationScaffolding.RunPostMigrationScaffolding(setupDialog.Config);
|
||||||
|
|||||||
59
Source/LibationAvalonia/README.md
Normal file
59
Source/LibationAvalonia/README.md
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# Run Libation on Ubuntu
|
||||||
|
|
||||||
|
## 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>
|
||||||
|
|
||||||
|
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)
|
||||||
|
If you want to convert your audiobooks to mp3, install FFMpeg using the following command:
|
||||||
|
|
||||||
|
```console
|
||||||
|
sudo apt-get install -y ffmpeg
|
||||||
|
```
|
||||||
|
|
||||||
|
## Install Libation
|
||||||
|
|
||||||
|
1. Download and extract the most recent linux-64 build.
|
||||||
|
2. Run Libation, either from the terminal or by double-clicking the Libation file in your desktop environment.
|
||||||
|
3. Follow the prompts to setup your installation.
|
||||||
|
4. Report bugs to https://github.com/rmcrackan/Libation/issues
|
||||||
Loading…
x
Reference in New Issue
Block a user