Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(packaging): seed jarvis.toml before freezing

rubenluetke10-beep3d2b9fff2e1a
diff --git a/packaging/linux/build.sh b/packaging/linux/build.sh
index d82bc4df1b..5610dea3a6 100644
--- a/packaging/linux/build.sh
+++ b/packaging/linux/build.sh
@@ -101,6 +101,21 @@ fi
command -v "${PYTHON}" >/dev/null 2>&1 || die "interpreter not found: ${PYTHON}"
+# jarvis.spec bundles ./jarvis.toml unconditionally, and that file is
+# .gitignore'd - a fresh clone (every CI runner) does not have one and
+# PyInstaller aborts before it starts. Seed the shipped default so the build
+# works from a clean checkout. On a machine that already has a live config the
+# spec bundles THAT file as-is, which is a privacy question the build cannot
+# answer for the maintainer, so it says so instead of quietly shipping it.
+if [ ! -f "${REPO_ROOT}/jarvis.toml" ]; then
+ [ -f "${REPO_ROOT}/jarvis.toml.example" ] \
+ || die "neither jarvis.toml nor jarvis.toml.example exists; jarvis.spec cannot bundle a default configuration"
+ log "seeding jarvis.toml from jarvis.toml.example (clean checkout)"
+ run cp "${REPO_ROOT}/jarvis.toml.example" "${REPO_ROOT}/jarvis.toml"
+elif ! cmp -s "${REPO_ROOT}/jarvis.toml" "${REPO_ROOT}/jarvis.toml.example"; then
+ log "WARNING: jarvis.spec bundles this machine's jarvis.toml into the package, and it differs from jarvis.toml.example. Check it carries nothing personal before publishing the build."
+fi
+
if [ "${SKIP_PYINSTALLER}" = "1" ]; then
log "SKIP_PYINSTALLER=1 - reusing ${FREEZE_DIR}"
else
diff --git a/packaging/macos/build.sh b/packaging/macos/build.sh
index f0457a3dc8..02a645ecd7 100644
--- a/packaging/macos/build.sh
+++ b/packaging/macos/build.sh
@@ -106,6 +106,21 @@ if building; then
|| die "PyInstaller is not installed for ${PYTHON} (pip install pyinstaller)"
fi
+# jarvis.spec bundles ./jarvis.toml unconditionally, and that file is
+# .gitignore'd - a fresh clone (every CI runner) does not have one and
+# PyInstaller aborts before it starts. Seed the shipped default so the build
+# works from a clean checkout. On a machine that already has a live config the
+# spec bundles THAT file as-is, which is a privacy question the build cannot
+# answer for the maintainer, so it says so instead of quietly shipping it.
+if [ ! -f "${REPO_ROOT}/jarvis.toml" ]; then
+ [ -f "${REPO_ROOT}/jarvis.toml.example" ] \
+ || die "neither jarvis.toml nor jarvis.toml.example exists; jarvis.spec cannot bundle a default configuration"
+ log "seeding jarvis.toml from jarvis.toml.example (clean checkout)"
+ run cp "${REPO_ROOT}/jarvis.toml.example" "${REPO_ROOT}/jarvis.toml"
+elif ! cmp -s "${REPO_ROOT}/jarvis.toml" "${REPO_ROOT}/jarvis.toml.example"; then
+ log "WARNING: jarvis.spec bundles this machine's jarvis.toml into the app, and it differs from jarvis.toml.example. Check it carries nothing personal before publishing the build."
+fi
+
if [ -f "${ICNS}" ] || [ "${DRY_RUN}" = "1" ]; then
:
else