WebCord is capable of parsing some Chromium flags and following application-specific flags:
-
--start-minimized
or-m
– start WebCord minimized in tray; usefull when running WebCord at system start; -
--version
or-V
– display application version and exit even before app is ready. -
--help
or-h
– display help information about the application. -
--export-l10n={dir}
– export currently loaded translations as a set of JSON files to the{dir}
directory. -
--verbose
or-v
– show debug messages.
While packaging the application with the Electron Forge, WebCord supports following build enviroment variables to set build specific flags:
-
WEBCORD_BUILD={release,stable,devel}
– if set torelease
orstable
, WebCord will be build as a stable release, with some experimental features disabled that are not meant for production build. Default build type isdevel
. -
WEBCORD_ASAR={true,false}
– if set tofalse
, WebCord won't be packaged to the ASAR archive. Default istrue
. -
WEBCORD_UPDATE_NOTIFICATIONS={true,false}
– if set tofalse
, notifications won't show on the new updates; this feature is meant for the package maintainers so they can disable the notifications for their users and let the package manager to handle the update notifications.
If you're packaging the application on your own, you can create directly a
buildInfo.json
file, which is used internally by WebCord do determine the
state of the build enviroment flags (except ASAR packaging, this is what you
need to implement or configure with your own Electron packaging software).
The buildInfo.json
file should be placed in the application's root directory
(i.e. next to package.json
) and contain following properties:
-
"type": "devel"/"release"
– similary toWEBCORD_BUILD
, this controls whenever this build is meant for production use or for development purposes. If not set, WebCord's build type will be set asdevel
. -
"commit": [hash]
– this property will save the information about the build commit; it is ignored for therelease
build type. -
"features": [Object]
– this is the object controling some features; currently it can contain these optional properties:"updateNotifications": true/false
– whenever to show notifications on the new releases; this does not disable the update checker to print the its current status in the console (i.e. if the version is out-of-date).