Skip to content

Commit 33650bd

Browse files
committed
Change host_os_version to contain 3 parts
1 parent cdd1e68 commit 33650bd

File tree

4 files changed

+26
-46
lines changed

4 files changed

+26
-46
lines changed

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

Lines changed: 11 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/extensionstore.ts

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -93,38 +93,29 @@ function createPluginSets(
9393
pluginMetaData: PluginMetaData,
9494
qtcVersion: Versions
9595
): PluginSet[] {
96-
const allPlatforms: PlatformDescriptor[] = [
96+
const osArr = [
9797
{
9898
name: 'Windows',
99-
version: '10',
100-
architecture: 'x86_64'
99+
version: '10.0.0'
101100
},
102101
{
103102
name: 'Linux',
104-
version: '20.04',
105-
architecture: 'x86_64'
103+
version: '20.04.0'
106104
},
107105
{
108106
name: 'macOS',
109-
version: '11.0',
110-
architecture: 'x86_64'
111-
},
112-
{
113-
name: 'Windows',
114-
version: '10',
115-
architecture: 'arm64'
116-
},
117-
{
118-
name: 'Linux',
119-
version: '20.04',
120-
architecture: 'arm64'
121-
},
122-
{
123-
name: 'macOS',
124-
version: '11.0',
125-
architecture: 'arm64'
107+
version: '11.0.0'
126108
}
127109
]
110+
const allPlatforms: PlatformDescriptor[] = osArr
111+
.map(os => {
112+
return { ...os, architecture: 'x86_64' } as PlatformDescriptor
113+
})
114+
.concat(
115+
osArr.map(os => {
116+
return { ...os, architecture: 'arm64' } as PlatformDescriptor
117+
})
118+
)
128119
return allPlatforms.map(platform => {
129120
return {
130121
status: 'draft',

0 commit comments

Comments
 (0)