Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

Web: add Trunk.toml so the release zip finds the site in dist/web with relative URLs

Brandon Thomas92dd783b7ead
diff --git a/apps/printcraft-web/Trunk.toml b/apps/printcraft-web/Trunk.toml
new file mode 100644
index 000000000..7a3074779
--- /dev/null
+++ b/apps/printcraft-web/Trunk.toml
@@ -0,0 +1,11 @@
+# Build with: trunk build --release (from apps/printcraft-web)
+# The release zip (packaging/web/package.sh) expects the site in dist/web with relative URLs.
+[build]
+target = "index.html"
+dist = "../../dist/web"
+public_url = "./"
+filehash = true
+
+[serve]
+addresses = ["127.0.0.1"]
+port = 8766