Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide on a cross-platform directory structure #6

Open
sheepla opened this issue Sep 29, 2022 · 2 comments
Open

Decide on a cross-platform directory structure #6

sheepla opened this issue Sep 29, 2022 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@sheepla
Copy link
Owner

sheepla commented Sep 29, 2022

No description provided.

@sheepla
Copy link
Owner Author

sheepla commented Oct 1, 2022

I'm planning to use kirsle/configdir to support each platform.

Provisional plan:

Location of download cache files

configdir.LocalCache(appName, "github.com", repo, owner, tag, "...")
  • On Linux: ~/.cache/ghin/github.com/sheepla/longgopher/v0.0.1-alpha/...
  • On Windows: %LOCALAPPDATA%\ghin\github.com\sheepla\longgopher\v0.0.1-alpha\...
  • On macOS: $HOME/Library/Caches/ghin/github.com/sheepla/longgopher/v0.0.1-alpha/...

Location of executable files installing

~/bin ? ~/.local/bin ? ~/ghin/bin or ~/.ghin/bin ?
Hmm... I'm not sure which directory to set for Windows

Location of files that manage the version of the releases

configdir.LocalCache(appName, "manage.json")

@sheepla sheepla added the help wanted Extra attention is needed label Oct 1, 2022
@sheepla
Copy link
Owner Author

sheepla commented Jan 8, 2023

Hmm, It may be better to put the files in a single rooted directory e.g. ~/ghin/ without using configdir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant