Initial Commit
Some checks failed
Continuous Integration / GitHub Actions Test (push) Successful in 23s
CodeQL / Analyze (TypeScript) (push) Failing after 5m27s
Check Transpiled JavaScript / Check dist/ (push) Has been cancelled
Continuous Integration / TypeScript Tests (push) Has been cancelled
Lint Codebase / Lint Codebase (push) Has been cancelled
Some checks failed
Continuous Integration / GitHub Actions Test (push) Successful in 23s
CodeQL / Analyze (TypeScript) (push) Failing after 5m27s
Check Transpiled JavaScript / Check dist/ (push) Has been cancelled
Continuous Integration / TypeScript Tests (push) Has been cancelled
Lint Codebase / Lint Codebase (push) Has been cancelled
This commit is contained in:
30
src/util.ts
Normal file
30
src/util.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
export function getPlatformExtension(): string {
|
||||
switch (process.platform) {
|
||||
case 'win32':
|
||||
return 'zip'
|
||||
default:
|
||||
return 'tgz'
|
||||
}
|
||||
}
|
||||
|
||||
export function getConanArchitecture(): string {
|
||||
switch (process.arch) {
|
||||
case 'x64':
|
||||
return 'x86_64'
|
||||
case 'ia32':
|
||||
return 'i686'
|
||||
default:
|
||||
return process.arch
|
||||
}
|
||||
}
|
||||
|
||||
export function getConanPlatform(): string {
|
||||
switch (process.platform) {
|
||||
case 'win32':
|
||||
return 'windows'
|
||||
case 'darwin':
|
||||
return 'macos'
|
||||
default:
|
||||
return 'linux'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user