- Qt6 >= 6.5
- Meson
- Ninja
Linux build:
- run
makeormake releaseand binary is ready insidebuild/linux/srcfolder
Windows build:
- Download qt source from Qt website and compile only qtbase and qttools.
- Add Qt bin folder to
PATHby editingQT_BINvariable inbuild.ps1 - execute
.\build.ps1 releaseand executable is produced insidebuild/win/srcfolder
The IPC is using jsonrpc 2.0 and only communicate over WebSocket through port 31795.
Example usage can be found in the test script.
API documentation available in wsserver.cpp where
function name start with method or here in summary with aria2 documentation style:
Open url or filepath using xdg-open in Unix and win32 cmd's start in Windows.
params:
uri: string;return: "OK"
Delete file or folder.
filepath: string;return: "OK"
Get status of file.
params:
filepath: string;return:
{
type?: "folder" | "file",
exist: boolean,
}Open a file picker pop-up and return selected file/folder, empty string if cancelled.
Since version 0.2.0
params:
type: "file" | "folder",
filter: string, // https://doc.qt.io/qt-6/qfiledialog.html#getOpenFileNamereturn:
{
selected: string,
}Get aria2tray version.
return:
{
version: string,
}Ping the server.
return: pong