Skip to main content

Electron Builder

Returns the YAML content required for electron-builder updates and generates *.yml feed metadata.

Response Format

  • YAML configuration files (latest.yml, latest-mac.yml, latest-linux.yml).
  • Compatible with the electron-builder / electron-updater update mechanism.

Generated Files

Generated FilePurpose
*.ymlContains package information and update metadata for electron-builder

Checking for Updates

curl -X GET 'http://localhost:9000/checkVersion?app_name=myapp&version=1.0.0&channel=stable&platform=windows&arch=amd64&owner=admin&updater=electron-builder'

Upload with the updater Parameter

Include the updater parameter so the binary and *.yml land in an isolated folder:

curl -X POST --location 'http://localhost:9000/upload' \
--header 'Authorization: Bearer <jwt_token>' \
--form 'file=@"/path_to_file/myapp.exe"' \
--form 'file=@"/path_to_file/latest.yml"' \
--form 'data="{\"app_name\":\"myapp\",\"version\":\"0.0.1\",\"channel\":\"stable\",\"publish\":true,\"platform\":\"windows\",\"arch\":\"amd64\",\"updater\":\"electron-builder\"}"'

Files are then organized as:

/updater/myapp/stable/windows/amd64/0.0.1/
├── myapp.exe
└── latest.yml