File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ local util = require("util")
99--- @return table Version information
1010function PLUGIN :PreInstall (ctx )
1111 local version = ctx .version
12- local platform = util .get_platform ()
12+ local os = util .get_os ()
1313 local download_url = " https://github.com/Kampfkarren/selene/releases/download/"
1414 .. version
1515 .. " /selene-"
1616 .. version
1717 .. " -"
18- .. platform
18+ .. os
1919 .. " .zip"
2020
2121 return {
Original file line number Diff line number Diff line change @@ -11,17 +11,17 @@ function M.headers()
1111 }
1212end
1313
14- --- Returns the name of the platform .
14+ --- Returns the name of the OS .
1515---
16- --- @return string Platform name
17- function M .get_platform ()
18- local platform = RUNTIME .osType
16+ --- @return string OS name
17+ function M .get_os ()
18+ local os = RUNTIME .osType
1919
20- if platform == " darwin" then
20+ if os == " darwin" then
2121 return " macos"
2222 end
2323
24- return platform
24+ return os
2525end
2626
2727--- Returns a table containing the results of applying the callback.
You can’t perform that action at this time.
0 commit comments