chore: build config info plist (#5224)
* chore: update Info.plist and tauri config to reflect build channel
This commit is contained in:
parent
c41a6c3899
commit
ecfbdf8256
17
.github/scripts/rename-tauri-app.sh
vendored
17
.github/scripts/rename-tauri-app.sh
vendored
@ -33,6 +33,21 @@ cat ./tauri.conf.json.tmp
|
|||||||
rm $INPUT_JSON_FILE
|
rm $INPUT_JSON_FILE
|
||||||
mv ./tauri.conf.json.tmp $INPUT_JSON_FILE
|
mv ./tauri.conf.json.tmp $INPUT_JSON_FILE
|
||||||
|
|
||||||
|
# Update Info.plist if it exists
|
||||||
|
INFO_PLIST_PATH="./src-tauri/Info.plist"
|
||||||
|
if [ -f "$INFO_PLIST_PATH" ]; then
|
||||||
|
echo "Updating Info.plist..."
|
||||||
|
|
||||||
|
# Replace jan.ai.app with jan-{channel}.ai.app
|
||||||
|
sed -i '' "s|jan\.ai\.app|jan-${CHANNEL}.ai.app|g" "$INFO_PLIST_PATH"
|
||||||
|
|
||||||
|
# Replace <string>jan</string> with <string>jan-{channel}</string>
|
||||||
|
sed -i '' "s|<string>jan</string>|<string>jan-${CHANNEL}</string>|g" "$INFO_PLIST_PATH"
|
||||||
|
|
||||||
|
echo "Info.plist updated"
|
||||||
|
|
||||||
|
cat ./src-tauri/Info.plist
|
||||||
|
fi
|
||||||
# Update the layout file
|
# Update the layout file
|
||||||
# LAYOUT_FILE_PATH="web/app/layout.tsx"
|
# LAYOUT_FILE_PATH="web/app/layout.tsx"
|
||||||
|
|
||||||
@ -45,4 +60,4 @@ mv ./tauri.conf.json.tmp $INPUT_JSON_FILE
|
|||||||
# sed -i -e "s#Jan#Jan-$CHANNEL#g" "$LAYOUT_FILE_PATH"
|
# sed -i -e "s#Jan#Jan-$CHANNEL#g" "$LAYOUT_FILE_PATH"
|
||||||
|
|
||||||
# Notify completion
|
# Notify completion
|
||||||
# echo "File has been updated: $LAYOUT_FILE_PATH"
|
# echo "File has been updated: $LAYOUT_FILE_PATH"
|
||||||
Loading…
x
Reference in New Issue
Block a user