-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
147 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import * as child_process from 'child_process'; | ||
import * as rimraf from 'rimraf'; | ||
import * as path from 'path'; | ||
import {arch, type} from 'os'; | ||
|
||
import {Binary, OS} from './binary'; | ||
import {Config} from '../config'; | ||
|
||
/** | ||
* The appium binary. | ||
*/ | ||
export class Appium extends Binary { | ||
static os = [OS.Windows_NT, OS.Linux, OS.Darwin]; | ||
static id = 'appium'; | ||
static versionDefault = Config.binaryVersions().appium; | ||
static isDefault = false; | ||
static shortName = ['appium']; | ||
|
||
constructor() { | ||
super(); | ||
this.name = 'appium'; | ||
this.versionCustom = Appium.versionDefault; | ||
this.prefixDefault = 'appium-'; | ||
this.suffixDefault = ''; | ||
} | ||
|
||
id(): string { return Appium.id; } | ||
|
||
versionDefault(): string { return Appium.versionDefault; } | ||
|
||
executableSuffix(): string { return ''; } | ||
|
||
remove(sdkPath: string): void { | ||
rimraf.sync(sdkPath); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.