Skip to content

AsuniSoft/asunicam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AsuniCam

Asuni minimalist webcam viewer, powered by Electron

Usage

The first time, if there are more than one camera, a simple list with the detected devices will be shown. Just use numbers (1-9) to select the video input. Its ID will be stored at %APPDATA%/asunicam/config.json.

If you delete this file the software will ask you again when detected multiple video inputs. Anyway you can change the input using numbers (1-9) at any time if the devices are still plugged. When you select a device, the configuration file is updated, so the next time you execute the app the last video device will be used.

Just quit the app with ESCAPE key.

Prerequisites for compile

  • Install Node.js (You can use also: scoop install nodejs)

Quick compile & run

At the project root do:

npm install
npm start

Prerequisites for development

Use npm to install following development dependencies (project root). I used Visual Code for debugging.

npm i -D electron@latest
npm install --save electron-config

Build standalone executable

You need all development prerequisites plus electron-packager, install it. The -g option will enable the packager be executed from command line.

npm install electron-packager -g

And remember to install all needed dependencies before package build. At project root do:

npm install

Build on all Platforms

electron-packager ./ AsuniCam --platform=all --arch=all --electron-version=2.0.0

Build on Windows (32bit and 64bit)

electron-packager ./ AsuniCam --platform=win32 --arch=ia32 --electron-version=2.0.0
electron-packager ./ AsuniCam --platform=win32 --arch=x64 --electron-version=2.0.0

Build on Darwin (OS X 64bit)

electron-packager ./ AsuniCam --platform=darwin --arch=all --electron-version=2.0.0

Build on Linux (32bit and 64bit)

electron-packager ./ AsuniCam --platform=linux --arch=ia32 --electron-version=2.0.0
electron-packager ./ AsuniCam --platform=linux --arch=x64 --electron-version=2.0.0