You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en_US/desktop_deployment.rst
+43-27Lines changed: 43 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,10 +130,12 @@ on Mac OS X (~/Library/Preferences/pgadmin),
130
130
and on Windows (%APPDATA%/pgadmin).
131
131
132
132
133
-
Auto-Update Feature for pgAdmin 4 Desktop
134
-
*****************************************
133
+
Auto-Update of pgAdmin 4 Desktop Application
134
+
********************************************
135
135
136
-
pgAdmin 4's desktop application includes an automated update system built using Electron's ``autoUpdater`` module. This feature enables users to receive and install updates seamlessly, ensuring they always have access to the latest features and security fixes.
136
+
pgAdmin 4's desktop application includes an automated update system built using
137
+
Electron's ``autoUpdater`` module. This feature enables users to receive and install
138
+
updates seamlessly, ensuring they always have access to the latest features and security fixes.
137
139
138
140
Supported Platforms
139
141
===================
@@ -159,43 +161,62 @@ Update Process Overview
159
161
160
162
3. **Installation Flow:**
161
163
162
-
- User prompted to restart when update ready
164
+
- User prompted to Install & Restart or Restart Later when update ready
163
165
- Update applied during application restart
164
166
167
+
The flow chart for the update process is as follows:
168
+
169
+
.. image:: images/auto_update_desktop_app.png
170
+
:alt:Runtime View Log
171
+
:align:center
172
+
165
173
Technical Architecture
166
174
======================
167
175
168
-
1. **Main Process (runtime/src/js/pgadmin.js)**
176
+
1. **Main Process**
169
177
170
178
Handles core update functionality:
171
179
180
+
File: runtime/src/js/pgadmin.js
181
+
172
182
.. code-block:: javascript
173
183
174
184
autoUpdater.on('checking-for-update', () => {
175
-
misc.writeServerLog('checking for updates...');
185
+
misc.writeServerLog('[Auto-Updater]: Checking for update...');
0 commit comments