dayllenger / beamui

[WIP] Web-inspired declarative desktop UIs in the D language
Boost Software License 1.0
78 stars 15 forks source link

Where should the beamui directory be located? #22

Closed Keyn1 closed 3 years ago

Keyn1 commented 3 years ago

git clone https://github.com/dayllenger/beamui.git -its OK but beamui is downloaded to the current folder, for example c:\dlang

now I have c:\Dlang\ dmd2\ beamui\

I do c:\DlangPrg>dub init hello beamui Couldn't find package: beamui

copy beamui -> C:\Dlang\dmd2\src\beamui Couldn't find package: beamui

Нужен хоть какой-нибудь хелп как этим вообще пользоваться.

dayllenger commented 3 years ago

Ну просто нужно вручную добавить зависимость, как сделано в примерах. Пакета пока нет в dub registry.

dub.json:

"dependencies": {
    "beamui": {"path": "../beamui"},
    "beamui:platforms": {"path": "../beamui"}
}
Keyn1 commented 3 years ago

put "beamui" in C:\Dlang\beamui fix the file: dub.json

{ "authors": [ "Keyn" ], "copyright": "2020", "description": "a", "license": "proprietary", "name": "hellogui", "dependencies": { "beamui": {"path": "C:\Dlang\beamui"}, "beamui:platforms": {"path": "C:\Dlang\beamui"} } }

compilation is successful