Skip to content

Commit 889a008

Browse files
committed
fix(build): streamline package process and ensure metadata and schemas are copied correctly
1 parent d2cbc22 commit 889a008

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

justfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ deps:
1111

1212
build: deps
1313
yarn build
14+
cp metadata.json dist/
15+
cp -r schemas dist/ 2>/dev/null || true
16+
#glib-compile-schemas dist/schemas/ 2>/dev/null || true
1417

15-
package:
18+
package: build
1619
mkdir -p dist/target
17-
cp metadata.json dist/metadata.json
1820
cd dist && \
1921
zip -r "target/{{ uuid }}.zip" . \
2022
-x "target/*" \
@@ -29,11 +31,9 @@ lint:
2931
watch:
3032
yarn watch:css
3133

32-
install: build package
34+
install: package
3335
mkdir -p {{ ext_dir }}
3436
rsync -a --exclude='*.zip' dist/ {{ ext_dir }}/
35-
cp -r schemas {{ ext_dir }}/ 2>/dev/null || true
36-
glib-compile-schemas {{ ext_dir }}/schemas/ 2>/dev/null || true
3737
@echo "Installed at: {{ ext_dir }}"
3838

3939
uninstall:
@@ -42,9 +42,8 @@ uninstall:
4242
@echo "Uninstalled."
4343

4444
quick: build
45+
mkdir -p {{ ext_dir }}
4546
rsync -a --exclude='*.zip' dist/ {{ ext_dir }}/
46-
cp -r schemas {{ ext_dir }}/ 2>/dev/null || true
47-
glib-compile-schemas {{ ext_dir }}/schemas/ 2>/dev/null || true
4847
@echo "Files updated. Log out and back in to apply."
4948

5049
logs:

0 commit comments

Comments
 (0)