Build blueprint-compiler inside venv (#1159)

This commit is contained in:
clsty 2025-03-13 11:03:36 +08:00
parent ee12c76ad7
commit 2ae817aa05
2 changed files with 10 additions and 1 deletions

View file

@ -10,7 +10,6 @@ depends=(
libadwaita
libsoup3
libportal-gtk4
blueprint-compiler
gobject-introspection
sassc
)

View file

@ -130,6 +130,15 @@ install-python-packages (){
x source $ILLOGICAL_IMPULSE_VIRTUAL_ENV/bin/activate
x uv pip install -r scriptdata/requirements.txt
x mkdir -p $base/cache/blueprint-compiler && cd $base/cache/blueprint-compiler
try git init -b main
try git remote add origin https://github.com/clsty/ii-blueprint-compiler.git
x git pull origin main && git submodule update --init --recursive
x meson setup build --prefix=$VIRTUAL_ENV
x meson compile -C build
x meson install -C build
x cd -
x mkdir -p $base/cache/gradience && cd $base/cache/gradience
try git init -b main
try git remote add origin https://github.com/end-4/ii-gradience.git
@ -139,6 +148,7 @@ install-python-packages (){
x meson compile -C build
x meson install -C build
x cd -
x deactivate # We don't need the virtual environment anymore
for i in "glib-2.0" "gradience"; do
x rsync -av "$ILLOGICAL_IMPULSE_VIRTUAL_ENV"/share/$i/ "$XDG_DATA_HOME"/$i/