Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix(ci): rename the desktop bin target with the channel, not just the package
Akarshan Biswas77de9cdda351
diff --git a/.github/scripts/rename-tauri-app.sh b/.github/scripts/rename-tauri-app.shindex 245528d91..80dd83937 100644--- a/.github/scripts/rename-tauri-app.sh+++ b/.github/scripts/rename-tauri-app.sh@@ -25,7 +25,8 @@ fi# Use jq to transform the contentjq --arg channel "$CHANNEL" --arg updater "$UPDATER" '.productName = "Jan-\($channel)" |- .identifier = "jan-\($channel).ai.app"+ .identifier = "jan-\($channel).ai.app" |+ .mainBinaryName = "Jan-\($channel)"' "$INPUT_JSON_FILE" > ./tauri.conf.json.tmpcat ./tauri.conf.json.tmp@@ -33,6 +34,17 @@ cat ./tauri.conf.json.tmprm $INPUT_JSON_FILEmv ./tauri.conf.json.tmp $INPUT_JSON_FILE+# mainBinaryName must name a real Cargo bin target, so the desktop bin and+# `default-run` have to be renamed with it. The workflow's ctoml call owns+# `default-run`; the target itself only exists here.+CARGO_TOML_PATH="$(dirname "$INPUT_JSON_FILE")/Cargo.toml"+if [ -f "$CARGO_TOML_PATH" ]; then+ echo "Renaming the desktop bin target in $CARGO_TOML_PATH..."+ sed "s|^name = \"jan-desktop\"$|name = \"Jan-${CHANNEL}\"|" "$CARGO_TOML_PATH" > ./Cargo.toml.tmp+ mv ./Cargo.toml.tmp "$CARGO_TOML_PATH"+ grep -n "^name = \"Jan-${CHANNEL}\"$" "$CARGO_TOML_PATH"+fi+# Update Info.plist if it existsINFO_PLIST_PATH="./src-tauri/Info.plist"if [ -f "$INFO_PLIST_PATH" ]; then