Skip to content

Commit

Permalink
Use self-contained builds (#1224)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz authored May 16, 2024
1 parent 8f9c0f8 commit b754875
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 94 deletions.
51 changes: 0 additions & 51 deletions .docs/Dotnet.md

This file was deleted.

2 changes: 0 additions & 2 deletions .docs/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

## Installation & Usage

- [Get .NET Runtime](Dotnet.md)
- Getting started:
- [Using the GUI](Using-the-GUI.md)
- [Using the CLI](Using-the-CLI.md)
Expand All @@ -28,6 +27,5 @@
- [General questions](Troubleshooting.md#general)
- [First steps help](Troubleshooting.md#first-steps)
- [It's crashing/failing](Troubleshooting.md#DCE-is-crashingfailing)
- [.NET Core Runtime is required](Troubleshooting.md#net-core-runtime-is-required)
- [Errors](Troubleshooting.md#errors)
- [**More help**](Troubleshooting.md)
2 changes: 0 additions & 2 deletions .docs/Scheduling-Linux.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Scheduling exports with Cron

Make sure you already have **DiscordChatExporter.CLI** downloaded and **.NET Runtime** installed.

## Creating the script

1. Open Terminal and create a new text file with `nano /path/to/DiscordChatExporter/cron.sh`
Expand Down
2 changes: 0 additions & 2 deletions .docs/Scheduling-MacOS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Scheduling exports on macOS

Make sure you already have **DiscordChatExporter.CLI** downloaded and **.NET Runtime** installed.

## Creating the script

1. Open TextEdit.app and create a new file
Expand Down
3 changes: 0 additions & 3 deletions .docs/Scheduling-Windows.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Scheduling exports on Windows

We'll be using [DiscordChatExporter CLI](https://github.com/Tyrrrz/DiscordChatExporter/releases/latest), PowerShell, and Task Scheduler.
Make sure you already have **DiscordChatExporter.CLI** downloaded and **.NET Runtime** installed.

## Creating the script

1. Open a text editor such as Notepad and paste:
Expand Down
12 changes: 1 addition & 11 deletions .docs/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Check the following page: [Obtaining token](Token-and-IDs.md)

### When I open DCE a black window pops up quickly or nothing shows up

If you have [.NET Runtime correctly installed](Dotnet.md), you might have downloaded the CLI flavor, try [downloading the GUI](Getting-started.md#gui-or-cli) instead.
You might have downloaded the CLI flavor of the app, which is meant to be run in a terminal. Try [downloading the GUI](Getting-started.md#gui-or-cli) instead if that's what you want.

### How can I set DCE to export automatically at certain times?

Expand All @@ -84,16 +84,6 @@ Check the following pages to learn how to schedule **DiscordChatExporter.CLI** r

Try opening it with a different program, try partitioning or use a different file format, like `PlainText`.

### DCE is crashing/failing

Check the following page: [Installing .NET Core Runtime](Dotnet.md)

If you already have .NET Core installed, please check if your problem is a [known issue](https://github.com/Tyrrrz/DiscordChatExporter/issues?q=is%3Aissue) before [opening a bug report](https://github.com/Tyrrrz/DiscordChatExporter/issues/new).

### .NET Core Runtime is required

Check the following page: [Installing .NET Core Runtime](Dotnet.md)

### I see messages in the export, but they have no content

Your bot is missing the 'Message Content Intent'. Go to the [Discord Developer Portal](https://discord.com/developers/applications), navigate to the 'Bot' section and enable it.
Expand Down
6 changes: 0 additions & 6 deletions .docs/Using-the-CLI.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# Using the CLI

## Guide

> **Note**:
> Make sure you have [.NET Core installed](Dotnet.md) before attempting to run the commands below.
> **Docker** users, please refer to the [Docker usage instructions](Docker.md).
## Step 1

After extracting the `.zip`, open Command Prompt, aka `cmd` (`Terminal` on **macOS** and **Linux**).
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ jobs:
# GUI assets aren't suffixed, unlike the CLI assets
asset: DiscordChatExporter

# Need to run on Windows because of DotnetRuntimeBootstrapper's dependency on Ressy
runs-on: windows-latest
runs-on: ubuntu-latest
timeout-minutes: 10

permissions:
Expand All @@ -124,7 +123,7 @@ jobs:
--output ${{ matrix.app }}/bin/publish/
--configuration Release
--runtime ${{ matrix.rid }}
--no-self-contained
--self-contained
- name: Upload artifacts
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
Expand Down
1 change: 0 additions & 1 deletion DiscordChatExporter.Cli/DiscordChatExporter.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<PackageReference Include="CliFx" Version="2.3.5" />
<PackageReference Include="CSharpier.MsBuild" Version="0.28.2" PrivateAssets="all" />
<PackageReference Include="Deorcify" Version="1.0.2" PrivateAssets="all" />
<PackageReference Include="DotnetRuntimeBootstrapper" Version="2.5.4" PrivateAssets="all" />
<PackageReference Include="Gress" Version="2.1.1" />
<PackageReference Include="Spectre.Console" Version="0.49.1" />
</ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion DiscordChatExporter.Gui/DiscordChatExporter.Gui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<PackageReference Include="CSharpier.MsBuild" Version="0.28.2" PrivateAssets="all" />
<PackageReference Include="Deorcify" Version="1.0.2" PrivateAssets="all" />
<PackageReference Include="DialogHost.Avalonia" Version="0.7.7" />
<PackageReference Include="DotnetRuntimeBootstrapper" Version="2.5.4" PrivateAssets="all" />
<PackageReference Include="Gress" Version="2.1.1" />
<PackageReference Include="Material.Avalonia" Version="3.6.0" />
<PackageReference Include="Material.Icons.Avalonia" Version="2.1.9" />
Expand Down
12 changes: 0 additions & 12 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,6 @@ To learn more about the war and how you can help, [click here](https://tyrrrz.me
> **Note**:
> If you're unsure which build is right for your system, consult with [this page](https://useragent.cc) to determine your OS and CPU architecture.
> **Important**:
> To run **DiscordChatExporter**, you need to make sure that the **.NET 8.0 Runtime** is installed.
> You can download it here:
>
> - [.NET 8.0 Runtime for **macOS x64**](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-8.0.0-macos-x64-installer)
> - [.NET 8.0 Runtime for **macOS arm64**](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-8.0.0-macos-arm64-installer)
> - [.NET 8.0 Runtime for **Linux**](https://learn.microsoft.com/dotnet/core/install/linux) (find the correct download for your distro)
> - On **Windows**, the runtime should be installed automatically when you run the application for the first time
>
> This should not be necessary if you install **DiscordChatExporter** using a package manager, as it should take care of the dependencies for you.
> This is also not necessary if you are running **DiscordChatExporter** via Docker, because the image already contains the runtime.
> **Note**:
> AUR and Nix packages linked above are maintained by the community.
> If you have any issues with them, please contact the corresponding maintainers.
Expand Down

0 comments on commit b754875

Please sign in to comment.