百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

TweetDuck

> 数据库
开源

一个用于 TweetDeck 的 Windows 客户端。与 Twitter 无关。

196 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一个用于 TweetDeck 的 Windows 客户端。与 Twitter 无关。

Follow TweetDuck on Twitter  |  Support via Ko-fi  |  Support via Patreon

Table of Contents

  1. Installation
  2. Source Code
    • Requirements
      • Editors
      • Installers
    • Solution Overview
      • Core Libraries
        • TweetLib.Core
        • TweetLib.Browser
        • TweetLib.Browser.CEF
      • Windows Projects
        • TweetDuck
        • TweetDuck.Browser
        • TweetDuck.Video
        • TweetImpl.CefSharp
      • Linux Projects
        • TweetDuck
        • TweetImpl.CefGlue
      • Miscellaneous
        • TweetLib.Communication
        • TweetLib.Utils
        • TweetTest.*
  3. Development (Windows)
    • Building
    • Debugging
    • Release
      • Installers
  4. Development (Linux)
    • Building
    • Release

Installation

Download links and system requirements are on the official website.

Source Code

Requirements

Building TweetDuck for Windows requires at minimum Visual Studio 2019 and Windows 7. Before opening the solution, open Visual Studio Installer and make sure you have the following Visual Studio workloads and components installed:

  • .NET desktop development
    • .NET SDK
    • F# desktop language support
  • Desktop development with C++
    • MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.20 / Latest)

In the Installation details panel, you can expand the workloads you selected, and uncheck any components that are not listed above to save space. You may uncheck the .NET SDK component if you installed the .NET 6 SDK directly.

Building TweetDuck for Linux requires .NET 6 SDK. The Linux project has its own solution file in the linux/ folder.

Editors

For editing code, I recommend either:

  • Visual Studio for C# / F# + VS Code for the rest (free when using the Community edition of Visual Studio)
  • Rider for all languages (paid)

Icons and logos were designed in Affinity Designer (paid). The original design projects are in the resources/Design/ folder (.afdesign extension).

Installers

If you don't want to build installers using the existing foundations, you can skip this section.

Official Windows installers are built using InnoSetup and Inno Download Plugin, specifically:

  • InnoSetup 6.2.1
  • Inno Download Plugin 1.5.1

During installation, the download plugin will ask whether to add its include path to ISPPBuiltins.iss. Note that this option does not work with InnoSetup 6, so TweetDuck installers don't need it.

Scripts for building installers require the PATH environment variable to include the InnoSetup installation folder. You can either edit PATH manually, or use a program like Rapid Environment Editor to simplify the process. For example, this is the installation folder I added to PATH under User variables:

  • C:\Program Files (x86)\Inno Setup 6

You may need to restart Visual Studio or Rider after changing PATH for the change to take place.

Solution Overview

Open the solution file TweetDuck.sln (or linux/TweetDuck.Linux.sln) in an IDE, and use the Restore NuGet Packages option in your IDE to install dependencies.

On Windows, TweetDuck uses the CefSharp library for the browser component, and Windows Forms for the GUI.

On Linux, TweetDuck uses the ChromiumGtk library, which combines CefGlue for the browser component and GtkSharp for the GUI.

The solution contains several C# projects for executables and libraries, and F# projects for automated tests. All projects target .NET 6 and either C# 10 or F#.

Projects are organized into folders:

  • Windows projects are in the windows/ folder
  • Linux projects are in the linux/ folder
  • Libraries (TweetLib.*) are in the lib/ folder
  • Tests (TweetTest.*) are also in the lib/ folder

Here are a few things to keep in mind:

  • Executable projects have their entry points in Program.cs
  • Library projects targeting .NET Standard have their assembly information in Lib.cs
  • All non-test projects include a link to the Version.cs file in the root of the repository, which allows changing the version of all executables and library files in one place

Web resource files (HTML, CSS, JS) are in the Resources/ folder:

  • Resources/Content/ contains all the core features of TweetDuck injected into the browser components
  • Resources/Guide/ contains the official TweetDuck guide that opens as a popup
  • Resources/Plugins/ contains all official plugins, and a .debug plugin for testing

These resource folders are linked as part of the TweetLib.Core project so they can be edited directly within an IDE. Alternatively, you can edit them using VS Code by opening the workspace file Resources/..code-workspace.

Core Libraries

TweetLib.Core

This library contains the core TweetDuck application and browser logic. It is built around simple dependency injection that makes it independent of any concrete OS, GUI framework, or browser implementation.

To simplify porting to other systems, it is not necessary to implement all interfaces, but some functionality will be missing (for ex. if clipboard-related interfaces are not implemented, then context menus will not contain options to copy text or images to clipboard).

TweetLib.Browser

This library provides a zero-dependency abstraction of browser components and logic. It defines interfaces, events, and container objects that are used by the TweetLib.Core library to describe how a browser should behave, while making as few assumptions about the actual browser implementation as possible.

TweetLib.Browser.CEF

This library is a partial implementation of TweetLib.Browser based on CEF interfaces and conventions.

While TweetLib.Browser is highly generic, most browser libraries are likely to be using some form of CEF, so this library significantly reduces the amount of work required to swap between browser libraries that are based on CEF.

Windows Projects

TweetDuck

Main Windows executable. It has a dependency on CefSharp and Windows Forms. Here you will find the entry point that bootstraps the main application, as well as code for GUIs and Windows-specific functionality.

TweetDuck.Browser

Windows executable that hosts various Chromium processes. It has a dependency on CefSharp.

TweetDuck.Video

Windows executable that hosts a video player, which is based on the WMPLib ActiveX component responsible for integrating Windows Media Player into .NET Framework.

By default, CefSharp is not built with support for H.264 video playback due to software patent nonsense, and even though TweetDuck could be moved entirely to Europe where MPEG LA's patent means nothing, it would require building a custom version of Chromium which requires too many resources. Instead, when a Twitter video played, TweetDuck launches this video player process, which uses Windows Media Player to play H.264 videos.

TweetImpl.CefSharp

Windows library that implements TweetLib.Browser.CEF using the CefSharp library and Windows Forms.

TweetLib.WinForms.Legacy

Windows library that re-adds some legacy Windows Forms components that were removed in .NET Core 3.1. The sources were taken from the .NET Core 3.0 sources of Windows Forms, and edited to remove unnecessary features.

Linux Projects

TweetDuck

Main Linux executable. It has a transitive dependency on ChromiumGtk. Here you will find the entry point that bootstraps the main application, as well as code for GUIs and Linux-specific functionality.

TweetImpl.CefGlue

Linux library that implements TweetLib.Browser.CEF using ChromiumGtk, which is based on CefGlue and GtkSharp.

Miscellaneous

TweetLib.Communication

This library provides a DuplexPipe class for two-way communication between processes.

TweetLib.Utils

This library contains various utilities that fill some very specific holes in the .NET standard library.

TweetTest.*

These are F# projects with automated tests.

Development (Windows)

When developing with Rider, it must be configured to use MSBuild from Visual Studio, and the DevEnvDir property must be set to the full path to the Common7\IDE folder which is inside Visual Studio's installation folder. You can set both in File | Settings | Build, Execution, Deployment | Toolset and Build:

  1. Click the MSBuild version drop-down, and select the path that includes the Visual Studio installation folder.
  2. Click the Edit button next to MSBuild global properties.
  3. Add a new property named DevEnvDir, and set its value to the full path to Common7\IDE. For example:
    • VS 2019 Community - C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE
    • VS 2022 Community - C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE

Building

The windows/TweetDuck/TweetDuck.csproj project file has several tasks (targets) that run before and after a build:

  • PreBuildEvent runs a PowerShell script that kills TweetDuck.Browser processes, in case they got stuck
  • CopyResources copies resource files into the build folder, and patches and validates them using the PostBuild.ps1 PowerShell script
  • FinalizeDebug copies a debug plugin (Resources/Plugins/.debug) into the build folder (Debug only)
  • FinalizeRelease prepares the build folder for publishing, and if InnoSetup is installed, regenerates the update installer (Release only)

If the build fails, usually with an error like The command (...) exited with code 1, open the Output tab for detailed logs. A possible cause is the PostBuild.ps1 script's file validation:

  • Resources/Plugins/emoji-keyboard/emoji-ordering.txt line endings must be LF (line feed); if the file contains any CR (carriage return) characters, the build will fail

Debugging

The Debug configuration uses a separate data folder by

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#appcefcefsharpcsharp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库