Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS downloads containing Windows files #1336

Closed
wants to merge 1 commit into from

Conversation

rizmyabdulla
Copy link

@rizmyabdulla rizmyabdulla commented Jan 18, 2025

Fixes #1331

Update project to ensure macOS downloads contain correct files.

  • Project File: Change OutputType from WinExe to Exe for cross-platform compatibility.
  • Program.cs: Remove Windows-specific error handling code and add platform-agnostic error handling.
  • UpdateService.cs: Ensure RuntimeInformation.RuntimeIdentifier is correctly set for macOS.
  • NativeMethods.cs: Add macOS-specific code for displaying message boxes.

Fixes #1331

Update project to ensure macOS downloads contain correct files.

* **Project File**: Change `OutputType` from `WinExe` to `Exe` for cross-platform compatibility.
* **Program.cs**: Remove Windows-specific error handling code and add platform-agnostic error handling.
* **UpdateService.cs**: Ensure `RuntimeInformation.RuntimeIdentifier` is correctly set for macOS.
* **NativeMethods.cs**: Add macOS-specific code for displaying message boxes.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Tyrrrz/DiscordChatExporter/issues/1331?shareId=XXXX-XXXX-XXXX-XXXX).
@Tyrrrz Tyrrrz requested a review from Copilot January 18, 2025 19:57

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • DiscordChatExporter.Gui/DiscordChatExporter.Gui.csproj: Language not supported
Comments suppressed due to low confidence (1)

DiscordChatExporter.Gui/Services/UpdateService.cs:23

  • Ensure that the behavior of RuntimeInformation.RuntimeIdentifier for macOS is covered by tests.
$"DiscordChatExporter.{RuntimeInformation.RuntimeIdentifier}.zip"
@Tyrrrz Tyrrrz added the invalid label Jan 18, 2025
@Tyrrrz
Copy link
Owner

Tyrrrz commented Jan 18, 2025

Closing as the provided changes don't make any sense and obviously haven't been tested

@rizmyabdulla rizmyabdulla closed this by deleting the head repository Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Downloads contain wrong files
2 participants