AccessFlair is a generic screen mirroring and remote control application for Linux.
Before installing, ensure you have the following system dependencies installed (required for robotjs and other native modules):
sudo apt-get update
sudo apt-get install build-essential libxtst-dev libpng++-devYou also need Node.js (version 12 or higher) and npm.
-
Clone the repository (if you haven't already).
-
Install the project dependencies:
npm install
Note: The application uses a pre-compiled native binary (
screen-capture-node.linux-x64-gnu.node) for screen capturing. Ensure this file is present in the root directory.
To run the application in development mode:
npm run devThis will start the Electron application with NODE_ENV=development.
To build the application for production, you can use the following commands:
npm run buildThis command uses electron-builder to package the application based on the configuration in package.json.
npm run build:appimageCreates an .AppImage file in the dist directory.
npm run build:flatpakCreates a Flatpak bundle.
main.js: The main entry point for the Electron application.index.js: Handles the native screen capture binding.index.html: The main frontend entry point.assets/: Contains application assets like icons.screen-capture-node.linux-x64-gnu.node: Pre-compiled native binary for screen capturing.
MIT