Skip to content

Commit

Permalink
Extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Sep 14, 2024
1 parent 0da9ee7 commit 5d01e34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install-wad.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,18 @@ function selectRelease(releases, version) {
* @returns {Promise<void>}
*/
async function installWad(version) {
log.debug(`Retrieving WinAppDriver releases from ${API_ROOT}`);
log.debug(`Retrieving releases from ${API_ROOT}`);
const releases = await listReleases();
if (!releases.length) {
throw new Error(`Cannot retrieve any valid WinAppDriver releases from GitHub`);
}
log.debug(`Retrieved ${releases.length} WinAppDriver GitHub releases`);
log.debug(`Retrieved ${releases.length} GitHub releases`);
const release = selectRelease(releases, version);
const installerPath = path.join(
tmpdir(),
`wad_setup_${(Math.random() + 1).toString(36).substring(7)}${EXT_MSI}`
);
log.info(`Will download and install WinAppDriver v${release.version} from ${release.downloadUrl}`);
log.info(`Will download and install v${release.version} from ${release.downloadUrl}`);
try {
await downloadToFile(release.downloadUrl, installerPath);
await shellExec(installerPath, ['/install', '/quiet', '/norestart']);
Expand Down

0 comments on commit 5d01e34

Please sign in to comment.