App class
Python wrapper for VelopackApp with builder pattern
class App
Constructors
| Constructor | Summary |
|---|---|
App |
App()
App()
Methods
| Method | Summary |
|---|---|
on_after_install_fast_callback | Fast callback hook for after installation (Windows only) |
on_after_update_fast_callback | Fast callback hook for after update (Windows only) |
on_before_uninstall_fast_callback | Fast callback hook for before uninstall (Windows only) |
on_before_update_fast_callback | Fast callback hook for before update (Windows only) |
on_first_run | This hook is triggered when the application is started for the first time after installation |
on_restarted | This hook is triggered when the application is restarted by Velopack after installing updates |
run | Runs the Velopack startup logic |
set_args | Override the command line arguments used by VelopackApp |
set_auto_apply_on_startup | Set whether to automatically apply downloaded updates on startup |
on_after_install_fast_callback(callback)
on_after_install_fast_callback(callback)
Fast callback hook for after installation (Windows only)
Parameters
| Name | Description |
|---|---|
callback |
on_after_update_fast_callback(callback)
on_after_update_fast_callback(callback)
Fast callback hook for after update (Windows only)
Parameters
| Name | Description |
|---|---|
callback |
on_before_uninstall_fast_callback(callback)
on_before_uninstall_fast_callback(callback)
Fast callback hook for before uninstall (Windows only)
Parameters
| Name | Description |
|---|---|
callback |
on_before_update_fast_callback(callback)
on_before_update_fast_callback(callback)
Fast callback hook for before update (Windows only)
Parameters
| Name | Description |
|---|---|
callback |
on_first_run(callback)
on_first_run(callback)
This hook is triggered when the application is started for the first time after installation
Parameters
| Name | Description |
|---|---|
callback |
on_restarted(callback)
on_restarted(callback)
This hook is triggered when the application is restarted by Velopack after installing updates
Parameters
| Name | Description |
|---|---|
callback |
run()
run()
Runs the Velopack startup logic
set_args(args)
set_args(args)
Override the command line arguments used by VelopackApp
Parameters
| Name | Description |
|---|---|
args |
set_auto_apply_on_startup(apply)
set_auto_apply_on_startup(apply)
Set whether to automatically apply downloaded updates on startup
Parameters
| Name | Description |
|---|---|
apply |
Generated from velopack 1.1.1