diff --git a/ClamAvTestApp.ts b/ClamAvIntegrationApp.ts similarity index 97% rename from ClamAvTestApp.ts rename to ClamAvIntegrationApp.ts index d322091..cc1e781 100644 --- a/ClamAvTestApp.ts +++ b/ClamAvIntegrationApp.ts @@ -19,7 +19,7 @@ import { createScanner, isCleanReply } from './clamd'; const CLAMAV_SERVER_HOST = 'clamav_server_host'; const CLAMAV_SERVER_PORT = 'clamav_server_port'; -export class ClamAvTestApp extends App implements IPreFileUpload { +export class ClamAvIntegrationApp extends App implements IPreFileUpload { constructor(info: IAppInfo, logger: ILogger, accessors: IAppAccessors) { super(info, logger, accessors); } diff --git a/app.json b/app.json index 8d0b00c..7d66ce7 100644 --- a/app.json +++ b/app.json @@ -4,18 +4,13 @@ "requiredApiVersion": "^1.22.1", "iconFile": "icon.png", "author": { - "name": "asd", - "homepage": "asd", - "support": "asd" + "name": "Rocket.Chat", + "homepage": "https://rocket.chat", + "support": "support@rocket.chat" }, - "name": "ClamAVTest", - "nameSlug": "clamavtest", - "classFile": "ClamAvTestApp.ts", - "description": "Test connection with ClamAv", - "implements": [], - "permissions": [ - { - "name": "networking" - } - ] + "name": "ClamAV Integration", + "nameSlug": "clamav-integration", + "classFile": "ClamAvIntegrationApp.ts", + "description": "This app enables forwarding uploaded files to an open source antivirus (ClamAV) application and prevents the upload from completing in Rocket.Chat if a virus is detected. It works across web browser, desktop apps and mobile apps\n\nUse it to prevent users from spreading viruses and malware via Rocket.Chat\n\nClamAV is an open source (GPL) antivirus engine used in a variety of situations, including email scanning, web scanning, and end point security. It provides a number of utilities including a flexible and scalable multi-threaded daemon, a command line scanner and an advanced tool for automatic database updates.", + "implements": ["IPreFileUpload"] } \ No newline at end of file diff --git a/clamd.ts b/clamd.ts index f6e878b..9c07544 100644 --- a/clamd.ts +++ b/clamd.ts @@ -6,7 +6,7 @@ import { Buffer } from 'buffer'; import net = require('net'); -import { Readable, Stream, Transform } from 'stream'; +import { Readable, Transform } from 'stream'; /** * Module exports. diff --git a/icon.png b/icon.png index a7c0cc4..26b5b02 100644 Binary files a/icon.png and b/icon.png differ