Closed araid closed 8 months ago
Hi. I've never used MacOS so I'm unsure how you create a MacOS app but I think that since MacOS is based in Linux, you could compile the app in your computer and it should work.
To compile ImThemes on your computer follow these steps:
curl https://nim-lang.org/choosenim/init.sh -sSf | sh
, it will download choosenim, which is a Nim installer/version manager. More info at https://nim-lang.org/install_unix.html~/.nimble/bin
to your PATH
variable (so you can use commands like nimble
or nim
) in your terminal.git clone https://github.com/Patitotective/ImThemes
.nimble install -y
, this will install all the Nim dependencies.nimble buildBin
, and try running that file.This seems useful if we want to have a prebuilt MacOS app https://forum.nim-lang.org/t/2652
fyi, I tried this, but I get this error with either brew installed nim, or nim installed via process above ^^^
also, where are the themes stored? Can I find them on a website somewhere and browse them? Thanks!
This was from running
$ ~/.nimble/bin/nimble install -y --verbose
@bradparks
--deepcopy:on
flag, this is the explanation I found:If you use system.deepCopy in your code, you need to enable it via --deepCopy:on on the command line. This is a band-aid and a better solution for this will arrive in the future. The reason for this opt-in switch is that ARC and ORC do not use the old runtime type information (RTTI) that system.deepCopy is built upon. We’ve built ARC and ORC with embedded devices in mind where the overhead of the old RTTI has been reported to be unacceptable.
https://forum.nim-lang.org/t/9868#65096
On Windows: getEnv("LOCALAPPDATA") On macOS: getEnv("XDG_CACHE_HOME", getEnv("HOME") / "Library/Caches") On other platforms: getEnv("XDG_CACHE_HOME", getEnv("HOME") / ".cache")
cool - tnanks - I tried it and get another error now - I will review the themes in that folder too though - much appreciated, and no pressure, lol!
Hmm, that's a weird error. Seems like imgui isn't being imported correctly or something of the sort, did you do nimble install nimgl
? You can check looking for nimgl
in the output of nimble list -i
(or directly do nimble list -i | grep nimgl
).
it is installed
but I tried to install afterwards to see, and it said it was already there (same version)
no biggie - I can use the themes as is! much appreciated!
It this maybe akready solved?
I guess I'll close it since it seems you can compile ImThemes without problems on MacOS.
I love the idea of this app and would like to use it on macOS. How hard would it be to add support for it?
I'm happy to try compiling but I've never worked with nim. I'd appreciate any links to guides or resources.