brew install lincerely/tools/lite
Or brew tap lincerely/tools; brew install lite git clone https://github.com/rxi/lite.git
cd lite
./build.sh
./lite
and an app did start up, but the text gets cut off in the editor window, and I can't quit the app from the menuTo make App bundles you have to create the following directory structure:
Lite.app
\- Content
\- MacOS
\- Lite (that's the executable file)
Here's a script that automates all that: [1]To add an icon you need a plist and a icns file [2].
I know it looks cumbersome, but it pays off when you need to bundle multiple files with your app.
-
[1] https://gist.github.com/mathiasbynens/674099
[2] https://stackoverflow.com/questions/1596945/building-osx-app...
Fixed this with:
sudo apt install libsdl2-dev
on Ubuntu.Else it works as tingletech described also using Mint/Ubuntu.
Update: I can install this using brew install sdl2 https://medium.com/@edkins.sarah/set-up-sdl2-on-your-mac-wit...
brew install sdl2 static double get_scale(void) {
float dpi;
SDL_GetDisplayDPI(0, NULL, &dpi, NULL);
#if _WIN32
return dpi / 96.0;
#elif __APPLE__
return dpi / 72.0;
#else
return 1.0;
#endif
}
I found changing it to dpi / 192.0 to be fairly comfortable. It wouldn't be too hard to add a scale option and change to `return (dpi * scale) / 192.0`. The "right way" is probably to do that but also get scale by checking the screen resolution; I'd go by height due to the increasing adoption of ultra-wide monitors: static double get_scale(void) {
SDL_DisplayMode dm;
SDL_GetDesktopDisplayMode(0, &dm);
return dm.h * scale / 786.0;
}
Edit: works on my win10 and arch boxes.There should be a separate feature to handle higher-resolution screens.
Anyway, it feels really easy to change anything in this editor.
also fonts are a bit big on retina screen.
Is there a config file where this can be changed?