luaish icon indicating copy to clipboard operation
luaish copied to clipboard

luaish for Windows

Open starwing opened this issue 12 years ago • 5 comments

hi steve,

after last discuss, I have made a windows version of luaish, currently it works well.

I used a win32 port of linenoise, and replaced lposix by my lpath module. (that module is prepared for lake :))

I also made a standalone branch, and made a prebuild binary for windows.

see here: https://github.com/starwing/luaish

I prepare add ilua features based this version.

thx :)

starwing avatar Jun 06 '12 08:06 starwing

That's cool, I didn't know linenoise could work for Lake. I'm going to follow this with interest.

Being a lazy bugger, where is the binary?

stevedonovan avatar Jun 06 '12 09:06 stevedonovan

Ahhhh, what I say for lake is lpath module (https://github.com/starwing/lpath surely, it's under early development, yet).

the binary is at: https://github.com/downloads/starwing/luaish/luaish-win32.zip i.e. goto repo page, find "Downloads" at right of page, and press it :)

starwing avatar Jun 06 '12 09:06 starwing

Problem with the bundled executable on my side (Windows XP SP3)

problem loading luaish: main_squished.lua:354: attempt to concatenate local 'home' (a nil value)

Old problem of finding home?

stevedonovan avatar Jun 06 '12 09:06 stevedonovan

I will try to not use squish.lua, and use split static char buffer for different lua file for debug use.

I just found that .export doesn't work on windows.

I will look into code to see why home doesn't work.

(you get a HOME environment variable? I have this variable in my Win7 box -- because I install MSYS, and using bash as my default shell, maybe I use cmd.exe to test it)

starwing avatar Jun 06 '12 13:06 starwing

(you get a HOME environment variable? I have this variable in my Win7 box -- because I install MSYS, and using bash as my default shell, maybe I use cmd.exe to test it)

Ah, that's it! In Penlight, I use this code to work out home (generally HOME is not defined on windows)

function path.expanduser(P) assert_string(1,P) if at(P,1) == '~' then local home = getenv('HOME') if not home then -- has to be Windows home = getenv 'USERPROFILE' or (getenv 'HOMEDRIVE' .. getenv 'HOMEPATH') end return home..sub(P,2) else return P end end

Personally, I stay away from squish and use soar (but that's my preference)

stevedonovan avatar Jun 06 '12 13:06 stevedonovan