TagStudio icon indicating copy to clipboard operation
TagStudio copied to clipboard

macOS build instructions

Open foreverigor opened this issue 1 year ago • 3 comments

I managed to build & run on macOS so I'm sharing:

It didn't work with the latest version of python, something related to dependencies, but 3.10 works so try with that. I recommend using mise for installation of python, it can also handle the rest of the build. Using mise, this is how you build on macOS (and potentially linux)

Put this into a file called .mise.toml in the project directory

[tools]
python = "3.10"

[env]
_.python.venv = { path = ".venv", create = true }

[tasks.tagstudio]
run = "pip install -r requirements.txt && python tagstudio/tagstudio.py"

and then run (with installed mise) mise trust && mise install, this will install python and create the venv and you can run the normal linux/ macos build instruction, or alternatively use mise run --yes tagstudio one-liner

the app & gui starts but looks a little fucky

foreverigor avatar Apr 23 '24 16:04 foreverigor

I run in python 3.11 so... it might at least work up till that version.

OleMortensen8 avatar Apr 23 '24 20:04 OleMortensen8

You can also declare your items as dependencies in the pyproject.toml file.

Would recommend using uv alongside mise (or rye) to create better Venv environments. Using the pyproject.toml to declare dependencies allows much easier updates over time. It's also one file where you can declare your build steps.

WardsParadox avatar Apr 25 '24 16:04 WardsParadox

I got it working on 3.12 on my macOS machine and created a build script to generate a .app version of the project PR-76

williamtcastro avatar Apr 28 '24 01:04 williamtcastro

this can be probably also closed since we have binaries.

yedpodtrzitko avatar May 16 '24 15:05 yedpodtrzitko