File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed
Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 11local lm = require " luamake"
22local fs = require " bee.filesystem"
3+ local platform = require " bee.platform"
34
5+ local function shdc_plat ()
6+ if lm .os == " windows" then
7+ return " win32"
8+ end
9+ if lm .os == " linux" then
10+ return " linux"
11+ end
12+ if lm .os == " macos" then
13+ return platform .Arch == " arm64" and " osx_arm64" or " osx"
14+ end
15+ return " unknown"
16+ end
417local paths = {
5- windows = " $PATH/win32/ $NAME.exe" ,
6- macos = " $PATH/osx_arm64/ $NAME" ,
7- linux = " $PATH/linux/ $NAME" ,
18+ windows = " $PATH/$NAME.exe" ,
19+ macos = " $PATH/$NAME" ,
20+ linux = " $PATH/$NAME" ,
821}
922local shdc = assert (paths [lm .os ]):gsub (" %$(%u+)" , {
10- PATH = tostring (lm .basedir / " bin/sokol-tools-bin/bin" ),
23+ PATH = tostring (lm .basedir / " bin/sokol-tools-bin/bin" / shdc_plat () ),
1124 NAME = " sokol-shdc" ,
1225})
1326
You can’t perform that action at this time.
0 commit comments