-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (42 loc) · 2.05 KB
/
Copy pathjustfile
File metadata and controls
52 lines (42 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Task runner for sulo-schema-builder, mirroring RDFCraft's justfile
# convention: a plain `docker compose up` server path, and per-OS desktop
# packaging recipes (built once per target OS, not cross-compiled).
# Install all workspace dependencies (api, frontend, packages/*).
install:
npm install
# Run the full stack via Docker (single container: API + built SPA).
up:
docker compose up -d --build
down:
docker compose down
logs:
docker compose logs -f api
# Package a standalone desktop binary for the current platform.
package:
node api/scripts/package-desktop.mjs
# Regenerate every app icon (all PNG sizes, .ico, .icns) from the master.
# Replace desktop/app-icon.png with any square 1024x1024 image and re-run.
icon:
npx --yes @tauri-apps/cli@latest icon desktop/app-icon.png -o desktop/src-tauri/icons
rm -rf desktop/src-tauri/icons/android desktop/src-tauri/icons/ios
# The three recipes below run ON their target OS — this repo doesn't
# cross-compile the desktop bundle, same as RDFCraft's own per-OS recipes.
#
# These are the LOCAL build path. Releases are built by
# .github/workflows/release.yml, which duplicates the pkg-target ↔ sidecar-name
# pairs below — change one, change the other.
# Desktop app for the current Mac (Intel or Apple Silicon).
package-mac:
node api/scripts/package-desktop.mjs
cp api/pkg-dist/sulo-schema-builder-api desktop/src-tauri/binaries/sulo-schema-builder-api-{{ arch() }}-apple-darwin
cd desktop && cargo tauri build
# Desktop app for Linux x64. Run this on a Linux machine.
package-linux:
node api/scripts/package-desktop.mjs node22-linux-x64
cp api/pkg-dist/sulo-schema-builder-api desktop/src-tauri/binaries/sulo-schema-builder-api-x86_64-unknown-linux-gnu
cd desktop && cargo tauri build
# Desktop app for Windows x64. Run this on a Windows machine.
package-win:
node api/scripts/package-desktop.mjs node22-win-x64
cp api/pkg-dist/sulo-schema-builder-api.exe desktop/src-tauri/binaries/sulo-schema-builder-api-x86_64-pc-windows-msvc.exe
cd desktop && cargo tauri build