Skip to content

Commit 0cb1079

Browse files
committed
Add macos x64/arm64, fix action.yml field names
1 parent 0789c38 commit 0cb1079

File tree

5 files changed

+34
-10
lines changed

5 files changed

+34
-10
lines changed

action.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,19 @@ inputs:
2121
download-url-win-x64:
2222
description: 'The url to download the extension from (for Windows x64)'
2323
required: true
24-
download-url-win-arm:
24+
download-url-win-arm64:
2525
description: 'The url to download the extension from (for Windows ARM64)'
2626
required: true
27-
download-url-macos:
28-
description: 'The url to download the extension from (for macOS Universal)'
27+
download-url-macos-x64:
28+
description: 'The url to download the extension from (for macOS x86)'
29+
required: true
30+
download-url-macos-arm64:
31+
description: 'The url to download the extension from (for macOS ARM64)'
2932
required: true
3033
download-url-linux-x64:
3134
description: 'The url to download the extension from (for Linux x64)'
3235
required: true
33-
download-url-linux-arm:
36+
download-url-linux-arm64:
3437
description: 'The url to download the extension from (for Linux ARM64)'
3538
required: true
3639
publish:

dist/index.js

Lines changed: 12 additions & 2 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: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export interface DownloadUrls {
4949
winarm64?: string
5050
linuxx64?: string
5151
linuxarm64?: string
52-
macos?: string
52+
macosx64?: string
53+
macosarm64?: string
5354
}
5455

5556
function createPluginRequest(
@@ -87,11 +88,18 @@ function createPluginRequest(
8788
}
8889
},
8990
{
90-
url: downloadUrls.macos,
91+
url: downloadUrls.macosx64,
9192
platform: {
9293
name: 'macOS',
9394
architecture: 'x86_64'
9495
}
96+
},
97+
{
98+
url: downloadUrls.macosarm64,
99+
platform: {
100+
name: 'macOS',
101+
architecture: 'arm64'
102+
}
95103
}
96104
].filter(source => source.url) as PluginSource[]
97105

src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ export async function run(): Promise<void> {
2929
linuxarm64: core.getInput('download-url-linux-arm64', {
3030
required: false
3131
}),
32-
macos: core.getInput('download-url-macos', { required: false })
32+
macosarm64: core.getInput('download-url-macos-arm64', {
33+
required: false
34+
}),
35+
macosx64: core.getInput('download-url-macos-x64', { required: false })
3336
}
3437

3538
const spec = await fs.readFile(specPath)

0 commit comments

Comments
 (0)