Convert testing/{awsy,condprofile,docs,geckodriver,marionette,
mozbase,mozharness,perfdocs,performance,raptor,talos,web-platform}
RST documentation files to MyST-flavored Markdown.
Skips testing/perfdocs/generated/* (auto-generated by mach perfdocs)
and testing/web-platform/tests/* (third-party test trees).
- Move treeherder-try frontmatter substitutions under the new myst
topmatter key.
- Allow the pre-existing autodoc Unknown target warning for
mozprofile.permissions to keep the build clean.
- Refresh allowed-warnings glob for manifest-sandbox download from
.rst to .md.
Differential Revision: https://phabricator.services.mozilla.com/D304228
29 lines
773 B
Markdown
29 lines
773 B
Markdown
# {mod}`mozinstall` --- Install and uninstall Gecko-based applications
|
|
|
|
mozinstall is a small python module with several convenience methods
|
|
useful for installing and uninstalling a gecko-based application
|
|
(e.g. Firefox) on the desktop.
|
|
|
|
## Simple example
|
|
|
|
```
|
|
import mozinstall
|
|
import tempfile
|
|
|
|
tempdir = tempfile.mkdtemp()
|
|
firefox_dmg = 'firefox-38.0a1.en-US.mac.dmg'
|
|
install_folder = mozinstall.install(src=firefox_dmg, dest=tempdir)
|
|
binary = mozinstall.get_binary(install_folder, 'Firefox')
|
|
# from here you can execute the binary directly
|
|
# ...
|
|
mozinstall.uninstall(install_folder)
|
|
```
|
|
|
|
## API Documentation
|
|
|
|
```{eval-rst}
|
|
.. automodule:: mozinstall
|
|
:members: is_installer, install, get_binary, uninstall,
|
|
InstallError, InvalidBinary, InvalidSource
|
|
```
|