Fixed an issue where pgAdmin4 app on macOS cannot auto-update while running on a read-only volume even if present in the Applications folder. #9402

This commit is contained in:
Anil Sahoo
2026-02-02 15:11:58 +05:30
committed by GitHub
parent ef1b69bd5a
commit 6000cc0fb4
3 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -45,8 +45,6 @@
<key>SYSTEM_VERSION_COMPAT</key>
<string>0</string>
</dict>
<key>LSFileQuarantineEnabled</key>
<true/>
<key>LSHasLocalizedDisplayName</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
@@ -69,5 +67,7 @@
<string>scripting.sdef</string>
<key>SCMRevision</key>
<string>62f83a7521ae1f32e563795732dff0c9da1b660d-refs/heads/master@{#812354}</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
</dict>
</plist>
+7
View File
@@ -67,6 +67,9 @@ _build_runtime() {
}
_create_python_env() {
# Force the current shell to not generate cache during build process
export PYTHONDONTWRITEBYTECODE=1
echo "Creating the Python environment..."
PATH=${PGADMIN_POSTGRES_DIR}/bin:${PATH}
LD_LIBRARY_PATH=${PGADMIN_POSTGRES_DIR}/lib:${LD_LIBRARY_PATH}
@@ -334,6 +337,10 @@ _codesign_binaries() {
return
fi
echo "Purging build-machine pollution (pycache) before signing..."
find "${BUNDLE_DIR}" -name "__pycache__" -type d -exec rm -rf {} +
find "${BUNDLE_DIR}" -name "*.pyc" -delete
if [ -z "${DEVELOPER_ID}" ] ; then
echo "Developer ID Application not found in codesign.conf" >&2
exit 1
+3
View File
@@ -229,6 +229,9 @@ function startDesktopMode() {
process.env.PGADMIN_INT_KEY = UUID;
process.env.PGADMIN_SERVER_MODE = 'OFF';
// Prevent Python from writing .pyc files to the signed bundle
process.env.PYTHONDONTWRITEBYTECODE = '1';
// Start Page URL
baseUrl = `http://127.0.0.1:${serverPort}`;
startPageUrl = `${baseUrl}/?key=${UUID}`;